Summary: | Wikipedia articles layout 20 times during load | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Geoffrey Garen <ggaren> | ||||||||
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> | ||||||||
Status: | REOPENED --- | ||||||||||
Severity: | Normal | CC: | bdakin, eric, hyatt, koivisto, mitz, simon.fraser | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Attachments: |
|
Description
Geoffrey Garen
2012-11-06 16:41:46 PST
printf shows about 20 layouts loading http://en.wikipedia.org/wiki/Steve_jobs. Ur script is bad. Created attachment 172678 [details]
Fixed script
Previous script matched every FrameView*layout* method, like FrameView::layoutRoot(). Even the current script doesn't detect when we bail early from layout().
OK. 20 is still a lot more than 1. Instruments shows that 80% of wikipedia article load time is layout. Is there some improvement we can make here? There are surely improvements we can make but 1 layout is not a realistic expectation for a page that does dynamic style manipulation during loading. Created attachment 172859 [details]
dtrace script for counting layouts -- with recursion guard and more precision
Added recursion guard.
|