Loading
Bug 1478124: Part 3 - Add a lookup table for ProcessMatchesSelector. r=froydnj
Currently, when we build the component registry at startup, we exclude any entry with a process selector which doesn't match the current process. When we switch to static lookup tables, however, that check is going to have to happen for every lookup, since we can't alter the table at runtime. That may not matter much, given how expensive the rest of the component lookup code is relative to ProcessMatchesSelector, but it's also easy and cheap enough to generate a lookup table for all possible ProcessSelector values, and do a quick index check instead. Differential Revision: https://phabricator.services.mozilla.com/D15033 --HG-- extra : rebase_source : 33bb395f3eaa6522b18dbdb6e415b5287add86cd extra : source : dd00365ebb55a06b4d6896bc86dd0fc94482d805