From antrob; don't recalculate layout when updateOptions() would not change it.
authorDan Vanderkam <dan@dygraphs.com>
Tue, 2 Aug 2011 04:35:17 +0000 (07:35 +0300)
committerDan Vanderkam <dan@dygraphs.com>
Tue, 2 Aug 2011 04:35:17 +0000 (07:35 +0300)
commit9ca829f2675e0be2e35d67d45dd91cc28c9c2cfe
tree1d366e60b3dbfc122bc3b64f587f1bf9591cf59b
parent003f94b51b9ff4f8a52935105dfba0aec2b5fd77
From antrob; don't recalculate layout when updateOptions() would not change it.

This suppresses recalculation of the pixel position of points when calling
updateOptions() with options which will not affect the layout. Insignificant
for small graphs, but this change provides a great performance boost for
changing options for graphs with multiple data sets.

Anthony saw something like a 30-40% speedup for dense charts.
auto_tests/misc/local.html
auto_tests/tests/update_options.js [new file with mode: 0644]
dygraph-utils.js
dygraph.js