Closed
Bug 529173
Opened 14 years ago
Closed 4 years ago
Replace search.json with startup cache
Categories
(Firefox :: Search, defect)
Firefox
Search
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: taras.mozilla, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [ts])
No description provided.
Reporter | ||
Updated•14 years ago
|
Whiteboard: [ts]
Reporter | ||
Updated•14 years ago
|
Updated•14 years ago
|
Component: General → Search
OS: Linux → All
Product: Core → Firefox
QA Contact: general → search
Hardware: x86 → All
Summary: replace searchengines.json with startup cache → replace search.json with startup cache
Comment 1•9 years ago
|
||
Taras: I assume that this bug is basically "don't dump 160KB of JSON to disk; let's store something precompiled", right? Is there a reason for startup cache instead of BSON, or even writing favicons separately? We want something like this to avoid chewing up so much space in Fennec profiles.
Blocks: 1042372
Flags: needinfo?(taras.mozilla)
Reporter | ||
Comment 2•9 years ago
|
||
Richard, this was more to do with data locality. less files to read => faster. As far as formats, bson sucks. json + gzip or json + lzma win over every binary json format + compression I tried. Startup cache is nice because it's a zip, so you get compression for free.
Flags: needinfo?(taras.mozilla)
Comment 3•9 years ago
|
||
Great. So long as we get a space saving, I'm happy :) What's the next step for getting this moving?
Reporter | ||
Comment 4•9 years ago
|
||
(In reply to Richard Newman [:rnewman] from comment #3) > Great. So long as we get a space saving, I'm happy :) > > What's the next step for getting this moving? implement it?
Comment 5•9 years ago
|
||
Heh. Let's see if these fancy new backlog flags make a difference…
Flags: firefox-backlog?
Summary: replace search.json with startup cache → Replace search.json with startup cache
Comment 6•9 years ago
|
||
I don't know what the breakdown of profile space on Fennec looks like or how many thousands of papercuts you're suffering from, but 160KB doesn't seem very big to me, so without context the size argument isn't particularly convincing. This seems like it would be a significant chunk of work, and there's little evidence that it will help startup significantly (particularly now that search initialization is all async), so I don't think there's enough win here to justify the cost.
Flags: firefox-backlog? → firefox-backlog-
Comment 7•8 years ago
|
||
I'm likely to replace search.json in bug 1203167. If the size of the base64 encoded icon files is a problem, the bug to fix it is bug 986676.
Comment 8•4 years ago
|
||
search.json is now a compressed lz4 file. Not sure if the icons are still an issue or not - but if so, that's bug 986676 as mentioned in the previous comment.
As this doesn't seem to be a current issue with startup, I'm going to close this out. We can always re-open or file a new issue if we find something significant.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•