Closed Bug 1525502 Opened 5 years ago Closed 5 years ago

Add an MRU cache for CheckContentBlockingAllowList()

Categories

(Core :: Privacy: Anti-Tracking, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

Details

(Whiteboard: [anti-tracking])

Attachments

(2 files)

This funtion tends to get called repeatedly for the same window and channel arguments, so it makes sense to add a small MRU cache to save the cost of recomputing the answer when we had just computed it moments ago.

Blocks: 1516540
No longer blocks: 1516540
Whiteboard: [anti-tracking]
Target Milestone: --- → mozilla67
Blocks: 1516540
Pushed by eakhgari@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b9d970f20f18
Part 1: Add an API for registering a callback to get called when something changes in the environment which can change the result of anti-tracking checks; r=baku
https://hg.mozilla.org/integration/autoland/rev/02e125fcde8a
Part 2: Add an MRU cache for CheckContentBlockingAllowList(); r=baku
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: