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)

defect

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]

Maybe dupe of 1487101?

(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.

Depends on: 1487101
Priority: P2 → P3
Severity: normal → S3
Blocks: necko-cache

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) ?

See Also: → 1959090

Should this be duped to bug 1959090 ?

Flags: needinfo?(smayya)

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
See Also: 1959090
No longer depends on: 1487101
You need to log in before you can comment on or make changes to this bug.