[Python-Dev] pymalloc and overallocation (unicodeobject.c,2.139,2.140 checkin) (original) (raw)
Guido van Rossum guido@python.org
Fri, 26 Apr 2002 18:46:57 -0400
- Previous message: [Python-Dev] pymalloc and overallocation (unicodeobject.c,2.139,2.140 checkin)
- Next message: [Python-Dev] pymalloc and overallocation (unicodeobject.c,2.139,2.140 checkin)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Yet another idea: decode into a fixed-size stack-allocated buffer. If it fits in that buffer, use PyString_FromStringAndSize(). Otherwise, do the overallocation thing.
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] pymalloc and overallocation (unicodeobject.c,2.139,2.140 checkin)
- Next message: [Python-Dev] pymalloc and overallocation (unicodeobject.c,2.139,2.140 checkin)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]