Open Bug 1151887 Opened 9 years ago Updated 2 years ago

Optimize cache index format

Categories

(Core :: Networking: Cache, defect, P5)

defect

Tracking

()

Tracking Status
firefox40 --- affected

People

(Reporter: michal, Unassigned)

References

Details

(Whiteboard: [necko-would-take])

Currently we dump the index to the file periodically. The new file is written when there are at least 300 changes and the last dump was done at least 20 seconds ago. Writing always the whole index is not efficient especially in case the index is large. Bugs 1151788, 1151810 and 1151815 will change the index format, so now is the best time to also change how we write the index to disk. We should append the changes at the end of the index file. This will cause that some entries will have several records in the index (e.g. create, remove, create again, update, remove, ...) so some space will be wasted. We'll dump the whole index again once the wasted space reaches some limit.
Whiteboard: [necko-would-take]
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P5

Unassigning Michal to move bugs back to triage pool.

Assignee: michal.novotny → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.