paper-dropdown-menu icon indicating copy to clipboard operation
paper-dropdown-menu copied to clipboard

PERF: CPU "leak" after opening and closing dropdown with *noink* attribute

Open louisptremblay opened this issue 10 years ago • 5 comments

CPU goes up to 10% after one opening and closing a dropdown with noink attribute. Doesn't ever go back to normal after that. The more time you open and close, the higher the CPU raises, never going back down.

Easy to reproduce (the bug can be seen in the official demo page):

  • Go to https://elements.polymer-project.org/elements/paper-dropdown-menu?view=demo:demo/index.html&active=paper-dropdown-menu
  • Wait for the page to finish loading and close every other Chrome tabs.
  • Observe that your Chrome CPU usage is very low (2-3%)
  • Open and close the last dropdown a few times on the demo page (No Ripple, No Animations).
  • CPU has gone significantly higher and is not going back down even after waiting a long time

Thank you!

louisptremblay avatar Dec 11 '15 00:12 louisptremblay

Wow that's pretty bad! I see what you mean.

ghost avatar Jan 04 '16 04:01 ghost

Believe this is in paper-ripple, but draw is being called continuously without anything to draw:

screen shot 2016-01-04 at 8 32 37 am

cc @rictic @cdata

ebidel avatar Jan 04 '16 16:01 ebidel

Looks like this might be a paper-ripple bug.

cdata avatar Jan 29 '16 22:01 cdata

ping @cdata

ebidel avatar Mar 10 '16 23:03 ebidel

No news about this issue? My application becomes unusable for CPU problem :( The only way to solve this is to put periodically _animating=false on any paper-ripple.

Eymerich01 avatar Mar 30 '17 13:03 Eymerich01