andymeneely / chromium-history

Scripts and data related Chromium's history
11 stars 4 forks source link

Pre-compile our Ruby Regexs #123

Closed andymeneely closed 10 years ago

andymeneely commented 10 years ago

Everywhere we have a regular expression as a part of a massive for-loop, let's use a pre-compiled form of a regular expression. Maybe it'll save us time.

andymeneely commented 10 years ago

Yeah it looks like our performance woes were not from this anyway. We should, however, use ~= instead of match since it's faster.