Last Comment Bug 782006 - Preload the nsLayoutStylesheetCache
: Preload the nsLayoutStylesheetCache
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: Layout (show other bugs)
: unspecified
: ARM Gonk (Firefox OS)
: -- normal (vote)
: mozilla17
Assigned To: Chris Jones [:cjones] inactive; ni?/f?/r? if you need me
:
Mentors:
Depends on:
Blocks: 781726
  Show dependency treegraph
 
Reported: 2012-08-10 21:56 PDT by Chris Jones [:cjones] inactive; ni?/f?/r? if you need me
Modified: 2012-08-16 06:17 PDT (History)
2 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
WIP (1.29 KB, patch)
2012-08-11 13:13 PDT, Chris Jones [:cjones] inactive; ni?/f?/r? if you need me
no flags Details | Diff | Review
Prefetch the "built-in" stylesheet cache in content processes (1.29 KB, patch)
2012-08-14 12:54 PDT, Chris Jones [:cjones] inactive; ni?/f?/r? if you need me
roc: review+
Details | Diff | Review

Description Chris Jones [:cjones] inactive; ni?/f?/r? if you need me 2012-08-10 21:56:53 PDT
Fetching the stylesheets takes ~100ms on startup, on the critical path.  Preloading the files knocks off that overhead.
Comment 1 Chris Jones [:cjones] inactive; ni?/f?/r? if you need me 2012-08-11 13:13:00 PDT
Created attachment 651148 [details] [diff] [review]
WIP
Comment 2 Chris Jones [:cjones] inactive; ni?/f?/r? if you need me 2012-08-14 12:54:08 PDT
Created attachment 651858 [details] [diff] [review]
Prefetch the "built-in" stylesheet cache in content processes

Sorry roc, not sure if there's anyone who knows both the stylesheet cache code and content-process startup.  Let me know if I should ping someone else for review.
Comment 3 Chris Jones [:cjones] inactive; ni?/f?/r? if you need me 2012-08-15 18:47:05 PDT
https://hg.mozilla.org/integration/mozilla-inbound/rev/31c4f7ab45b7
Comment 4 Ed Morley [:emorley] 2012-08-16 06:17:33 PDT
https://hg.mozilla.org/mozilla-central/rev/31c4f7ab45b7

Note You need to log in before you can comment on or make changes to this bug.