Closed
Bug 2006748
Opened 8 months ago
Closed 4 months ago
Add MRU cache for URL normalization in AI Window Security Layer
Categories
(Core :: Machine Learning: General, task)
Core
Machine Learning: General
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: rconcepcion, Unassigned)
References
Details
(Whiteboard: [genai])
The security layer normalizes URLs frequently during policy evaluation. As usage scales (many tabs, many URLs per tab), repeated normalization of the same URLs may impact performance.
Add a Most Recently Used (MRU) cache to normalizeUrl() in SecurityUtils.sys.mjs to avoid redundant normalization work.
Notes
- Defer until profiling data (Bug 2005413) shows this is a bottleneck
- Cache should have bounded size to prevent memory growth
- Consider invalidation strategy if URLs can change
Reference
- D274523 reviewer feedback
Acceptance Criteria
- MRU cache implemented for normalizeUrl()
- Cache size is bounded
- Performance improvement validated via profiler
Updated•8 months ago
|
| Reporter | ||
Comment 1•4 months ago
|
||
Closing in favor of more recent security fast-follow bugs in Bug [2029713|https://bugzilla.mozilla.org/show_bug.cgi?id=2029713].
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•