When to compile regex?

Remco Gerlich scarblac-spamtrap at pino.selwerd.nl
Mon Feb 14 10:18:38 EST 2000


Gerrit Holl wrote in comp.lang.python:
> >>> for i in range(0):
> ...     print "do something"
> ...
> 
> Compiling *in* the loop would be more efficient than compiling outsite
> the loop :)
> 
> writing-an-empty-program-is-always-the-fastest-solution-ly y'rs - gerrit

Well, to be the fastest solution, it has to be a solution first ;)

-- 
Remco Gerlich,  scarblac at pino.selwerd.nl
  4:14pm  up 82 days, 22:18,  5 users,  load average: 0.14, 0.10, 0.06



More information about the Python-list mailing list