Standardize the ScriptPreloader/StartupCache cache key format
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox101 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
References
Details
Attachments
(2 files)
Currently there are multiple cache key format:
nsXULPrototypeCacheFontNameCachegfxFT2FontList- `mozJSComponentLoader
mozJSSubScriptLoadernsMessageManagerScriptExecutor(frame script, process script)- raw URI
*
- raw URI
where items marded with * are Stencil.
So, only nsMessageManagerScriptExecutor uses raw URI, while others uses path-like key.
If we add the compilation target into the cache key string in bug 1752209, it's better having consistent format, for example:
- compilation target + "/" + loader type + "/" + URI path
| Assignee | ||
Comment 1•4 years ago
|
||
(In reply to Tooru Fujisawa [:arai] from comment #0)
Currently there are multiple cache key format:
nsXULPrototypeCache
where items marded with
*are Stencil.
this was not accurate.
the content of nsXULPrototypeCache can contain Stencil, but it's serialization of XUL tree, so it can contain multiple Stencils,
and it's not guaranteed to have single compilation target, if we support module in XUL.
So, the compilation target must be put into the key only for others that the cache corresponds to single .js file
| Assignee | ||
Comment 2•4 years ago
|
||
(In reply to Tooru Fujisawa [:arai] from comment #1)
So, the compilation target must be put into the key only for others that the cache corresponds to single .js file
Or maybe the "compilation target" part can be extended to have "other", that can optionally be used by remaining consumers (not sure if it worth tho)
| Assignee | ||
Comment 3•4 years ago
|
||
nsXULPrototypeScript::SerializeOutOfLine needs compilation target, because it's .js file referred from <script>
nsXULPrototypeCache::WritePrototype doesn't need it, because it's xul file
| Assignee | ||
Comment 4•4 years ago
|
||
| Assignee | ||
Comment 5•4 years ago
|
||
Depends on D143574
Comment 7•4 years ago
|
||
Backed out for causing build bustages . CLOSED TREE
Backout link: https://hg.mozilla.org/integration/autoland/rev/84a0dcf54a260865312c902466be7dbfe92b13ea
Link to failure log :
https://treeherder.mozilla.org/logviewer?job_id=374355320&repo=autoland&lineNumber=14215
https://treeherder.mozilla.org/logviewer?job_id=374351442&repo=autoland&lineNumber=25706
| Assignee | ||
Updated•4 years ago
|
Comment 9•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/6340c6d93f10
https://hg.mozilla.org/mozilla-central/rev/7b7ac774209c
Description
•