speeding up string.split()
scarblac at pino.selwerd.nl
Mon May 28 10:36:51 CEST 2001
jcm <grumble at usa.net> wrote in comp.lang.python:
> It'd be Nice if the Python parser (or bytecode-compiler or whatever
> non-runtime thing is most appropriate) would translate the addition of
> two string literals into a single string. Or maybe it does this
> already? I haven't tried.
Python does *no* magic optimizations. It's completely WYSIWYG in that
respect. You tell it to add the two strings, Python does that, at runtime
like every other addition.
More information about the Python-list