gitmyhub

regex-cache

JavaScript ★ 0 updated 9y ago ⑂ fork

Memoize the results of a call to the RegExp constructor, avoiding repetitious runtime compilation of the same string and options, resulting in dramatic speed improvements.

No plain-English explanation yet — one is being written right now. Check back in a minute.