osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A curious bit of code...


In article <mailman.6893.1392328170.18130.python-list at python.org>,
 Serhiy Storchaka <storchaka at gmail.com> wrote:

> 13.02.14 21:59, Zachary Ware ??????????????(????):
> > don't use re for simple stuff (because while it may be very fast, it's
> > dominated by attribute lookup and function call overhead),
> 
> And the time of re variant depends on the size of input.

That's a good point.  It's nice, for a change, to see somebody shoot 
down a regex solution for a valid reason :-)