Avoid unnecessary etld lookups in browsing data filters
What: Adds some early exit/flow control logic in the backing filter function which prevents doing registerable domain lookups when they are not necessary. Why: Currently these lookups are performed for every origin, even if there are no registerable domains to compare against, and if it is already matching an origin rule. These lookups are somewhat expensive and require several string operations. Change-Id: I79e2af8baf9c884b7de7811080e970bcc364d274 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2521101 Commit-Queue: John Delaney <johnidel@chromium.org> Reviewed-by:Christian Dullweber <dullweber@chromium.org> Cr-Commit-Position: refs/heads/master@{#826799}
Showing
Please register or sign in to comment