Can I beat perl at grep-like processing speed?

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Fri Dec 29 11:15:15 EST 2006


In <mailman.2126.1167407451.32031.python-list at python.org>, Tim Smith
wrote:

> also, if you replace the regex with a test like lambda x:
> x.lower().find("destroy") != -1, you will get really close to the speed
> of perl's

Testing for ``'destroy' in x.lower()`` should even be a little bit faster.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list