startswith( prefix[, start[, end]]) Query

Steve Holden steve at holdenweb.com
Fri Sep 7 13:31:48 EDT 2007


Bruno Desthuilliers wrote:
> Steve Holden a écrit :
[...]
>>
>> Probably not really necessary, though, and they do say that premature 
>> optimization is the root of all evil ...
> 
> I wouldn't call this one "premature" optimization, since it doesn't 
> change the algorithm, doesn't introduce (much) complication, and is 
> proven to really save on lookup time.
> 
> Now I do agree that unless you have quite a lot of prefixes to test, it 
> might not be that necessary in this particular case...

The defense rests.

regards
  Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd           http://www.holdenweb.com
Skype: holdenweb      http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------




More information about the Python-list mailing list