Closed
Bug 21578
Opened 25 years ago
Closed 24 years ago
RFE: Implement a "flat-file" cache database
Categories
(Core :: Networking: Cache, enhancement, P3)
Core
Networking: Cache
Tracking
()
Future
People
(Reporter: sfurman, Assigned: gordon)
References
Details
(Keywords: perf)
Right now, the persistent cache uses a single disk file to store the content of
each cached URL. As a result, a page with lots of images may need to open and
read dozens of cache files. Due to a low-performance filesystem, this is
especially slow on the Mac - my benchmarks show that the 4.x cache is almost two
orders of magnitude slower on the Mac then on NT. Also, since most web files
are small (less than 15K), the cache generates thousands of tiny files,
increasing disk fragmentation and reducing storage efficiency (since small file
sizes are rounded up to the disk's block size).
A solution would be to create a single "flat" database file that stored all
cached content. The flat database would need to handle multiple
simultaneous writes, meaning that the stored data for one URL will not be
guaranteed to be contiguous. It must also be able to append to cached content
and truncate content to a specified length. This essentially amounts to a
filesystem-within-a-filesystem.
The full API specifications can be found here:
http://lxr.mozilla.org/seamonkey/source/netwerk/cache/public/nsINetDataCache.idl
http://lxr.mozilla.org/seamonkey/source/netwerk/cache/public/nsINetDataCacheReco
rd.idl
Bulk move of all Cache (to be deleted component) bugs to new Networking: Cache
component.
Updated•25 years ago
|
Summary: [Perf] Implement a "flat-file" cache database → RFE: [Perf] Implement a "flat-file" cache database
Updated•25 years ago
|
Target Milestone: M15
Comment 2•25 years ago
|
||
Assigning fur's cache bugs to Gordon. He can split them up with davidm.
Updated•25 years ago
|
Keywords: perf
Summary: RFE: [Perf] Implement a "flat-file" cache database → RFE: Implement a "flat-file" cache database
Comment 3•25 years ago
|
||
Moving post beta bugs to M18 which is now the post-beta milestone.
Target Milestone: M17 → M18
Moving to target milestone FUTURE.
Target Milestone: M18 → Future
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•