[Python-Dev] Optimization versus code bloat

Guido van Rossum guido at python.org
Mon Dec 29 09:52:46 EST 2003

> I posted a patch[1] optimizing str.split with specialized splitter
> as unicode.split do. The patch accellates str.split about 10~20%
> and adds about 50 lines. I'm curious whether it's acceptable ratio
> for python-dev moods.
> [1] http://www.python.org/sf/866875

Works for me -- split is a pretty common operation!  I might even use
this speedup in the Parrot benchmark. :-)

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-Dev mailing list