dae/anki — pull request #35 by hssm (2013-06-23 09:08:41+00:00)
Title: Pre-compile HTML-stripping regexes.

I'm using the HTML-stripping function extensively in one of my add-ons, and it's proving to be the slowest part for some tasks. After pre-compiling the regular expressions used, I gain about a 25-45% speed boost for my particular use-case. I figured the rest of the application can benefit from this as well.