[Python-Dev] Re: string find(substring) vs. substring in string

Guido van Rossum gvanrossum at gmail.com
Wed Feb 16 23:16:08 CET 2005


> The longer the thing you are searching in, the more one-time-only
> overhead you can afford to reduce the per-search-character cost.

Only if you don't find it close to the start.

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


More information about the Python-Dev mailing list