[Python-3000] Allocation of unicode objects

"Martin v. Löwis" martin at v.loewis.de
Sun Feb 10 21:55:09 CET 2008


> Since there are discussions going on on the topic of allocation algorithms for
> various built-in types, I thought I'd mention there's a patch for turning
> unicode objects into variable-sized objects (rather than using a
> separately-allocated buffer). The aim is to make allocation of those objects
> lighter, and relieve cache and memory pressure a bit.

I find that fairly reasonable, so I'm +1 for this approach (haven't 
studied the patch, though). I always wondered why Unicode objects
didn't work the way string objects work, to begin with.

Regards,
Martin


More information about the Python-3000 mailing list