palantir / plottable

:bar_chart: A library of modular chart components built on D3
http://plottablejs.org/
MIT License
2.97k stars 221 forks source link

memoize compute extents #3385

Closed hellochar closed 7 years ago

hellochar commented 7 years ago

Memoize calls to computing the plot extents (which does a linear pass through the data), improving perf. This also lets us delete a bunch of _update methods and move away from the "update" paradigm

blueprint-bot commented 7 years ago

point yarn.lock to public registry

Demo: quicktests | fiddle

blueprint-bot commented 7 years ago

comment memoize; better function names

Demo: quicktests | fiddle