[Python-3000] Droping find/rfind?

Jean-Paul Calderone exarkun at divmod.com
Fri Aug 25 15:14:51 CEST 2006


On Fri, 25 Aug 2006 15:06:13 +0200, Fredrik Lundh <fredrik at pythonware.com> wrote:
>Nick Coghlan wrote:
>
>> I believe you're thinking about something far more sophisticated than what I'm
>> suggesting. I'm just talking about a Python data type in a standard library
>> module that trades off slower performance with smaller strings (due to extra
>> method call overhead) against improved scalability (due to avoidance of
>> copying strings around).
>
>have you done any benchmarking on this ?
>

I've benchmarked string copying via slicing against views implemented using
buffer().  For certain use patterns, views are absolutely significantly
faster.

Jean-Paul


More information about the Python-3000 mailing list