Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
High CPU Usage in Dashboards #2281
CPU Usage in Chrome is roughly 60-80% while idle with just a few chart widgets.
Steps to reproduce the problem
The following profile was taken shortly after loading. The pattern from 5s onward continues into perpetuity.
The majority of the usage is a result of the render of https://github.com/Graylog2/graylog2-server/blob/master/graylog2-web-interface/src/components/visualizations/StackedGraphVisualization.jsx, which does not compare props with prevProps. We could probably get a decent boost with
I'm not particularly familiar with c3/d3 in react, but I do see a large number of wrapper components. Perhaps they could do some of that work for us?