От ревюто на Mozilla: 2) You should compile your host matcher regular expressions once, rather than each time you need to test a URL.
От ревюто на Mozilla: