forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebRequestRulesRegistry: Get rid of GlobalID as a map key + the local…
… map in AddRulesImpl. Improving speed for adding new rules: * use vector instead of map where we know the size in advance (vector can pre-allocate, map cannot), and don't care too much about searching by key * use a map of maps for storing WR rules --> top level by extension ID, second by rules ID (all the time we care about a fixed extension ID, so this makes things easier) In my benchmark, this reduced the time spent on AddRules by approx 8%. BUG=236368 R=battre@chromium.org Review URL: https://codereview.chromium.org/15018010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198880 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
vabr@chromium.org
committed
May 8, 2013
1 parent
a4ccba0
commit b467810
Showing
2 changed files
with
76 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters