Changeset [15a90c2fff374f344ca09b6c5fd4620e04b99dfd] by Olivier Cornu
Revision 15a90c2fff374f344ca09b6c5fd4620e04b99dfd,
committed by Olivier Cornu
· September 27th, 2009 @ 09:10 PM
Faster script domain resolution
Probably the most called WM functions are domain-resolution
related:
every time a DOMContentLoaded event fires in the browser, the
document URI
is tested against every enabled script's set of include and exclude
rules.
Even a slight improvement in the implementation might result in
an
appreciable gain. That's what we do here, in storing the regular
expression
associated to an include/exclude mask.
There might be memory gains as well as the old mechanism was
creating a lot
of single-use RegExp objects.
http://github.com/ocornu/webmonkey/commit/15a90c2fff374f344ca09b6c5...
1 changed file
-
M
src/modules/lib/uriset.jsm