timche/gmail-desktop

Constant CPU usage

alecmev opened this issue · 1 comments

OS
Linux

Gmail Desktop Version
v3.0.0-alpha.35

Describe the bug
About 13% of 1 core is being used at all times.

Additional context
I ran a CPU profiler, and looks like it's some element-ready that is never ready, so it must be one of these:

const buttonReady = elementReady(`body.xE .G-atb .${selector}`)

const inboxElement = await elementReady(inboxElementSelector, {
stopOnDomReady: false
})

const toElement = await elementReady<HTMLTextAreaElement>(
'textarea[name="to"]',
{
stopOnDomReady: false,
timeout: 60000
}
)

Probably the second one, since it has no timeout?

Thanks @alecmev for the detailed bug report! Will look into it asap!