Regexp Compilation Not An Issue
Source : Alex Schroeder: Diary
I was looking at an Oddmuse wiki with 3741 pages and ran time perl wiki.pl search=fnord raw=1 a few times. It took 1.502 seconds on the second run (the first one runs into disk caching issues). Then I rewrote the SearchString code to compile regular expressions and take it out of the loop [..]
le 01.10.08 à 22:04
dans Mind
-
Article précédent - Commenter - Article suivant -