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

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Sat Sep 8 14:14:38 EDT 2007


Steve Holden a écrit :
> 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.

Sorry, I don't understand this one (please bare with a poor french boy).




More information about the Python-list mailing list