Cache suitable regular expressions
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 21 Aug 2013 02:06:46 +0000 (04:06 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 21 Aug 2013 02:06:48 +0000 (04:06 +0200)
commit79cb25776f46e0b9b1e95052fbd84a59440fa34f
tree215f70461585e3f4275aff64a4ba0047b8845435
parent87f78946a56d19fe3696725fe7329767fd910320
Cache suitable regular expressions

This speeds up TestAllURLsMatching.test_no_duplicates by about 8000% at the cost of minimal memory overhead.
youtube_dl/extractor/common.py