PMSI-AlignAlytics / dimple

An object-oriented API for business analytics
Other
2.73k stars 556 forks source link

Performance problem for bar chart #260

Open hy9be opened 7 years ago

hy9be commented 7 years ago

It takes about 10 seconds to render 5000 bars on my machine (comparing to c3.js less than 2 seconds). I profiled the rendering with Chrome DevTool Timeline, and saw a lot of reflows (Chrome also identified them as performance concerns)

image

hy9be commented 7 years ago

The source of the reflow is: dimple._parentWidth

rpaskowitz commented 7 years ago

You can read some more investigation on this issue at https://github.com/PMSI-AlignAlytics/dimple/issues/178 as well as find a link to a branch that leverages fastdom to defer some work and save reflows, as well as another branch that implements cachine.