[Python-Dev] Looking for master thesis ideas involving Python

Michael Hudson mwh at python.net
Fri Oct 31 09:10:16 EST 2003


"Phillip J. Eby" <pje at telecommunity.com> writes:

>>Here's my crazy idea that's been knocking around my head for a while.
>>I wonder if anyone can shoot in down in flames.
>>
>>Remove the ob_type field from all PyObjects.  Make pymalloc mandatory,
>>make it use type specific pools and store a pointer to the type object
>>at the start of each pool.
>
> How would you get from the pointer to the pool head?

Did you read the rest of my mail?  Maybe I was too terse, but my
thinking was that the pools are aligned on a known size boundary
(e.g. 4K) so to get to the head you just mask off the 12 (or whatever)
least significant bits.  Wouldn't work for zeta-c[1], I'd have to
admit, but do we care?

Cheers,
mwh

[1] http://www.cliki.net/Zeta-C

-- 
  SPIDER:  'Scuse me. [scuttles off]
  ZAPHOD:  One huge spider.
    FORD:  Polite though.
                   -- The Hitch-Hikers Guide to the Galaxy, Episode 11



More information about the Python-Dev mailing list