On a page with multiple input fields, text-align kills performance
Reported by
richard....@figured.com,
May 4 2016
|
||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36 Example URL: Steps to reproduce the problem: 1. Create a page with a large number (>500) input fields 2. Add text-align:right to the input What is the expected behavior? Scrolling remains the same as without text-align What went wrong? Scroll performance is very slow Does it occur on multiple sites: Yes Is it a problem with a plugin? No Did this work before? N/A Does this work in other browsers? Yes Chrome version: 50.0.2661.94 Channel: stable OS Version: OS X 10.11.4 Flash Version: Shockwave Flash 21.0 r0 See this reduced test case: Slow performance (with text-align) https://jsfiddle.net/h0ork3xc/ Normal (without) https://jsfiddle.net/361nfqsx/
,
May 12 2016
I can confirm that the performance changes significantly when adding 'text-align: right'; Attached is a good, and bad (with text-align:right) trace. We are spending an awful lots of time in compositing (~150ms in PaintLayerCompositor::updateIfNeededRecursive, ) and paint related code (~150 ms in FrameView::synchronizedPaint). This could be either a case of layer explosion. Or a problem in painting logic, similar to https://bugs.chromium.org/p/chromium/issues/detail?id=588570 Need a bit more investigation to figure out the root cause. Putting this in Hotlist-input-dev for now.
,
May 12 2016
,
May 12 2016
The performance issue isn't scrolling related, relabeling.
,
May 19 2016
,
May 19 2017
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
May 19 2017
This might be anpther one of the bugs related to layer work. I'll be looking at this next week.
,
May 19 2017
Might be hit testing too.
,
May 21 2018
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
May 21 2018
This will be fixed in NG where alignment happens during layout.
,
May 21 2018
,
Jul 3
|
||||||||||
►
Sign in to add a comment |
||||||||||
Comment 1 by cbiesin...@chromium.org
, May 6 2016