Bug 111644 - [meta] RecalcStyle accounts for too much time on the main thread
Summary: [meta] RecalcStyle accounts for too much time on the main thread
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 113097 37688 89879 111494
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-06 16:40 PST by Eric Seidel (no email)
Modified: 2017-07-18 08:27 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2013-03-06 16:40:25 PST
[meta] RecalcStyle accounts for too much time on the main thread

In previous of Telemetry using Chromium content_shell on an Android device, we see style recalc taking up as much as 24% of total mainthread time.

https://docs.google.com/spreadsheet/ccc?key=0AlC4tS7Ao1fIdGtJTWlSaUItQ1hYaDFDcWkzeVAxOGc#gid=0
is a very run, but I will add more recent runs in further comments.

This is a meta bug to track planned work of making this take up less main-thread time.  I expect we will take several approaches, including:
- Remove unnecessary recalcs (by deferring the work as much as possible)
- Make parts of recalc faster (for example canShareStyleWith() is very very hot)
- Explore radical ideas such as making style recalc resume-able (resolve only as much of the docuement as is needed to answer a specific query) or computable by parallel threads.