Open Bug 1296161 Opened 5 years ago Updated 4 years ago

Measure and solve sync reflow for studying gdoc performance.


(Core :: Layout, defect, P3)




Tracking Status
firefox51 --- affected


(Reporter: sinker, Unassigned)



(Keywords: perf, Whiteboard: [qf:p5])

Bug 1260981 and it's blockers are studying the performances of google document.  We have found gdoc would measure dimensions, get clientWith, of text, or DIVs at the initialization stage.  And, I found Gecko would construct the whole frame tree and process all pending updates.

I don't look into details yet, but is it possible to contruct only frames and process only pending updates of ancestors and the content of the target element for clientWidth and clientHeight?
Not in general.  Layout algorithms have substantial dependencies between different parts of the tree.
Summary: get clientWidth on DIV would cause a heavy sync restyle/reflow. → Measure and solve sync reflow for studying gdoc performance.
I can see periods of 2xxms for getting |clientWidth| in JS script.  But, if I change as what I had mentioned in , they are gone.
Whiteboard: [qf:p5]
Priority: -- → P3
Keywords: perf
You need to log in before you can comment on or make changes to this bug.