how to store great array?

Thomas Wouters thomas at xs4all.net
Wed Jan 31 17:19:38 EST 2001


On Wed, Jan 31, 2001 at 12:17:14PM +0200, Erno Kuusela wrote:
> In article <mailman.980846556.5007.python-list at python.org>, Thomas
> Wouters <thomas at xs4all.net> writes:

> | pointer + int + int + long + pointer (ob_sval is a placeholder that gets
> | allocated to the right size in the PyString_New) = 160 bytes on a 32bit
> | system, 256 bytes on a proper 64bit system, and 224 bytes on Win64. Plus the
> | length of the string in whatever size a char is on that particular system
> | (usually a single byte.)

> however, this will only hold for machines with 1 bit per byte. :)

Eh, duh, yah. Read 'bits' instead of 'bytes', except for the last statement
about the size of a char. I bet it was early when I wrote that :)

-- 
Thomas Wouters <thomas at xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!




More information about the Python-list mailing list