RequestPolicy/requestpolicy — Issue #79: optimize order of accept/reject checks when processing requests
Author: jsamuel
Created: 2011-12-22 05:01:26+00:00
State: open
Labels: extension

As it's the most speed critical section of code, the function `shouldLoad()` which decides whether requests are blocked or allowed should be rearranged to put what are expected to be the most common cases first.

Let's not go to the level of javascript optimization at this point, which would probably include inlining some functions.