18F / 2015-foia-hub

A consolidated FOIA request hub.
Other
48 stars 17 forks source link

Compile regex patterns once on module load. #707

Closed jmcarp closed 9 years ago

jmcarp commented 9 years ago

This isn't going to have a noticeable impact on performance, but it's better to compile regular expressions once rather than recompiling on every function call.

geramirez commented 9 years ago

@jmcarp Thanks for chipping in! We appreciate your PRs. :+1: