Closed
Bug 1541106
Opened 7 years ago
Closed 8 months ago
Optimize some long lasting array manipulations in the cache code
Categories
(Core :: Networking: Cache, defect, P3)
Core
Networking: Cache
Tracking
()
RESOLVED
DUPLICATE
of bug 1959090
| Tracking | Status | |
|---|---|---|
| firefox68 | --- | affected |
People
(Reporter: mayhemer, Unassigned)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [necko-triaged])
Based on samples from bug 1540736, that may somewhat contribute to the overall load, but are not causing the main thread to become unresponsive.
- 153 mozilla::net::CacheIndex::FrecencyArray::RemoveRecord
- 58 mozilla::net::CacheStorageService::UnregisterEntry
and finally:
+ ! : 125 mozilla::net::CacheStorageService::PurgeOverMemoryLimit() (in XUL) + 228 [0x105694b24]
+ ! : | 105 mozilla::net::CacheStorageService::MemoryPool::PurgeOverMemoryLimit() (in XUL) + 1348 [0x1056951f4]
+ ! : | + 74 NS_QuickSort (in XUL) + 6916 [0x1051bc314]
Comment 1•7 years ago
|
||
Maybe dupe of 1487101?
| Reporter | ||
Comment 2•7 years ago
|
||
(In reply to Michal Novotny [:michal] from comment #1)
Maybe dupe of 1487101?
Maybe, but I can't say for sure at all; anyway, probably pushes priority of that bug up then.
Updated•4 years ago
|
Priority: P2 → P3
Updated•4 years ago
|
Blocks: necko-perf
Updated•3 years ago
|
Severity: normal → S3
Updated•2 years ago
|
Blocks: necko-cache
Comment 3•2 years ago
|
||
FWIW, NS_QuickSort is no longer used here. Maybe some of the optimizations we did in bug 1875859 might be applicable also for this array (starting from the question if a linked list might be more appropriate here, too) ?
Comment 5•8 months ago
|
||
Yes, we have replaced array with hashset now. Thanks for pointing it out.
Status: NEW → RESOLVED
Closed: 8 months ago
Duplicate of bug: 1959090
Flags: needinfo?(smayya)
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•