Changeset [15a90c2fff374f344ca09b6c5fd4620e04b99dfd] 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...

Committed by Olivier Cornu

  • M src/modules/lib/uriset.jsm
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Webmonkey is a fork of the popular Greasemonkey extension for Firefox.