New issue
Advanced search Search tips

Issue 787784 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 3
Type: Bug



Sign in to add a comment

Some yandex pages use a lot of idle-time CPU

Project Member Reported by eseckler@chromium.org, Nov 22 2017

Issue description

It seems to be related to the page requesting animation frames, which end up not causing any display update. Yet, the layer tree is updated, during which ScrollingCoordinator::updateAfterCompositingChangeIfNeeded is called.

The children of that event, 
particularly ScrollingCoordinator::setTouchEventTargetRects and ScrollingCoordinator::projectRectsToGraphicsLayerSpace
, use quite a significant amount of cpu time (~15-30ms on my machine per frame).

Is this something that we could optimize?

I attached a trace from loading [1] in chrome on Linux x64 (desktop). Same issue also observed in headless mode.

[1] https://market.yandex.ru/catalog/70732/list?hid=91497&glfilter=7893318%3A6840151
 
trace_yandex_setTouchEventTargetRects.json.gz
8.9 MB Download
Owner: schenney@chromium.org
Status: Assigned (was: Untriaged)
There's not much we can do about the page requesting animation frames then not doing anything, although some other bug or review did just go past me related to this. In that case the RAF was changing something off screen so not changing rendered content.

But maybe the code can be optimized, so I'll leave it open and look at it.
I can't reproduce this right now. But the page links look pretty broken, maybe
Yandex has a site bug today.

Sign in to add a comment