New submission from Antoine Pitrou: This is an attempt at improving allocation of str (PyUnicode) objects. For that it does two things: 1. make str objects PyVarObjects, so that the object is allocated in one pass rather than two 2. maintain an array of freelists, each for a given str length, so that many str allocations can bypass actual memory allocation calls
There is a ~10% speedup in stringbench, and a slight improvement in pybench (as invoked with "./python Tools/pybench/pybench.py -t String"). Also, memory consumption is a bit lower when running those benchmarks. ---------- components: Interpreter Core files: unialloc.patch messages: 61728 nosy: pitrou severity: normal status: open title: improved allocation of PyUnicode objects type: rfe versions: Python 3.0 Added file: http://bugs.python.org/file9296/unialloc.patch __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1943> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com