This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hyeshik.chang
Recipients
Date 2003-12-29.03:21:45
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Attached patch tries to optimize str.split by a
speciaiized splitter for one character separacters.
This trick is used for unicode.split too. I just
applied it to str.split. :)

quick perf. test:

- BEFORE -
% ./python Lib/timeit.py
'"/aaa/bbb/ccc/ddd/eee/fff/ggg/hhh/iii".split("/")'
100000 loops, best of 3: 7.84 usec per loop

- AFTER -
% ./python Lib/timeit.py
'"/aaa/bbb/ccc/ddd/eee/fff/ggg/hhh/iii".split("/")'
100000 loops, best of 3: 5.39 usec per loop
History
Date User Action Args
2007-08-23 15:30:45adminlinkissue866875 messages
2007-08-23 15:30:45admincreate