[issue1943] improved allocation of PyUnicode objects

Antoine Pitrou report at bugs.python.org
Thu Mar 20 23:19:52 CET 2008


Antoine Pitrou <pitrou at free.fr> added the comment:

Well, of course most words in most languages are below 20 characters.
Hence most strings containing words are also below 20 chars. But strings
can also contain whole lines (e.g. decoding of various Internet
protocols), which are statistically below 80 chars. I took that into
account in the freelists patch (it keeps lots of <15 char strings in
memory, and a few <90 char strings), which as you can see still yields
rather little benefits :)

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1943>
__________________________________


More information about the Python-bugs-list mailing list