[Python-3000] Making more effective use of slice objects in Py3k

Fredrik Lundh fredrik at pythonware.com
Fri Sep 1 09:56:52 CEST 2006

Talin wrote:

> (Another option is to simply make all strings UTF-32 -- which is not
> that unreasonable, considering that text strings normally make up only a
> small fraction of a program's memory footprint. I am sure that there are
> applications that don't conform to this generalization, however. )

performance is more than just memory use, though.  for some string operations,
memory bandwidth is the bottleneck, not memory use.  it simply takes more time
to process four times as much data.

(running the stringbench.py script in the sandbox on a recent 2.5 should give you
some idea of this)


More information about the Python-3000 mailing list