"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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4