Closed
Bug 1497996
Opened 6 years ago
Closed 5 years ago
Persist Activity Stream DOM content to disk at shutdown, and load that cache on start-up
Categories
(Firefox :: New Tab Page, enhancement, P2)
Firefox
New Tab Page
Tracking
()
RESOLVED
DUPLICATE
of bug 1614351
People
(Reporter: mconley, Unassigned)
References
Details
(Whiteboard: [fxperf:p2])
Right now, we do some preloading work so that Activity Stream has some pre-existing DOM to "hydrate" once it pulls enough state together in the parent process and sends it down to the content process.
I think we can take this a step further. Suppose at shut down (or after the most recent state update), we take a snapshot of Activity Stream's DOM, and persist it to disk off of the main thread. Maybe in indexedDB. Maybe in a file. Who knows.
Then, at next start-up (or maybe next newtab load), instead of loading the preload DOM and hydrating with React, we load the content (text, images, everything) from the file (or indexedDB, etc). That way, we don't actually need to fire up the Activity Stream stuff in the parent process for producing the new state until the parent has some free time.
This was originally florian's idea, and I think it's a good one.
Reporter | ||
Updated•6 years ago
|
Whiteboard: [fxperf]
Comment 1•6 years ago
|
||
(In reply to Mike Conley (:mconley) (:⚙️) from comment #0)
> Suppose at shut down (or after the
> most recent state update), we take a snapshot of Activity Stream's DOM, and
> persist it to disk off of the main thread.
It would be preferable if we could avoid adding more I/O during shutdown. Doing this during idle time would be nice.
Updated•6 years ago
|
Whiteboard: [fxperf] → [fxperf:p2]
Updated•6 years ago
|
Iteration: --- → 65.1 (Nov 2)
status-firefox63:
--- → wontfix
status-firefox64:
--- → wontfix
Priority: -- → P2
Reporter | ||
Comment 2•6 years ago
|
||
Perhaps relevant: https://css-tricks.com/render-caching-for-react/
Updated•6 years ago
|
Iteration: 65.1 (Nov 2) → 65.2 (Nov 16)
Updated•6 years ago
|
Iteration: 65.2 (Nov 16) → 65.3 (Nov 30)
Updated•6 years ago
|
Iteration: 65.3 (Nov 30) → 66.1 - Dec 10-23
Updated•6 years ago
|
Iteration: 66.1 - Dec 10-23 → ---
Priority: P2 → P3
Updated•6 years ago
|
Iteration: --- → 68.1 - Mar 18 - 31
Updated•6 years ago
|
Priority: P3 → P1
Updated•6 years ago
|
Iteration: 68.1 - Mar 18 - 31 → ---
Updated•6 years ago
|
Priority: P1 → P2
Assignee | ||
Updated•5 years ago
|
Component: Activity Streams: Newtab → New Tab Page
Reporter | ||
Updated•5 years ago
|
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•