Allow storing alternate data (ex: JS Bytecode) in the DOM cache
Categories
(Core :: Storage: Cache API, defect, P3)
Tracking
()
People
(Reporter: asuth, Unassigned, NeedInfo)
References
(Blocks 2 open bugs)
Details
(Whiteboard: dom-lws-bugdash-triage)
Attachments
(4 files, 4 obsolete files)
12.02 KB,
patch
|
Details | Diff | Splinter Review | |
Bug 1336199 - P2: Keeping alternative body and nsICacheInfoChannel in the InternalResponse. r?bkelly
5.78 KB,
patch
|
Details | Diff | Splinter Review | |
27.64 KB,
patch
|
Details | Diff | Splinter Review | |
38.71 KB,
patch
|
Details | Diff | Splinter Review |
Updated•9 years ago
|
Comment 1•9 years ago
|
||
Updated•9 years ago
|
Comment 3•8 years ago
|
||
![]() |
||
Comment 4•8 years ago
|
||
![]() |
||
Updated•8 years ago
|
Updated•8 years ago
|
![]() |
||
Comment 5•8 years ago
|
||
![]() |
||
Comment 6•8 years ago
|
||
![]() |
||
Comment 7•8 years ago
|
||
![]() |
||
Updated•8 years ago
|
![]() |
||
Comment 8•8 years ago
|
||
![]() |
||
Comment 9•8 years ago
|
||
Comment 10•8 years ago
|
||
Comment 11•8 years ago
|
||
Comment 12•8 years ago
|
||
Comment 13•8 years ago
|
||
Comment 14•8 years ago
|
||
![]() |
||
Updated•8 years ago
|
Updated•8 years ago
|
Comment 15•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
![]() |
||
Comment 16•7 years ago
|
||
![]() |
||
Updated•7 years ago
|
Comment 17•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Reporter | ||
Updated•6 years ago
|
Comment 19•6 years ago
|
||
Example of how much this bug affects apps' start time.
from bug 1593579
Booting my app :
(Hiding the splash and showing GV. All content is delivered by serviceworker):
onFirstComposite
sequence after app-start:
- splash screen duration <1s
- black screen 0.7~3s
- base UI gets rendered (main page ~15k)
- delay ~0.4s
- toolbox UI get rendered (additional JS file ~200k)
onFirstContentfulPaint
sequence after app-start:
- splash screen duration 2
5s (in most cases 23s) - base UI with toolbox UI is ready and visible
Note: that when onFirstContentfulPaint gets triggered, all the app content is ready/compiled - the toolbox UI from the additional JS file has been run and the toolbox UI rendered.
That means that the cost of not having the JS Bytecode cached/ready, means 3 times longer "booting time" for the app.
(tested on 2yr old, mid-range device)
Comment 21•6 years ago
|
||
*correction
onFirstContentfulPaint
sequence after app-start:
splash screen duration is about 3s
Updated•6 years ago
|
Updated•3 years ago
|
Comment 24•1 year ago
|
||
Is this still wanted and/or are those patches still useful ?
Reporter | ||
Comment 25•1 year ago
|
||
This is definitely still wanted. It might make sense to revisit the work in these patches after bug 1899507 and bug 1689149 are implemented, potentially keeping this use-case in mind for those use-cases. In particular, we potentially might not need to involve the necko channel machinery here if we're largely able to operate in the spec Response space and in terms of RemoteLazyInputStream and nsIInputStreams at the implementation level (with the ability to provide a file descriptor directly to JS for memory mapping in unencrypted cases).
Comment 26•1 year ago
|
||
I will back to rebase these patches first, then investiage what we should with them.
Description
•