From: Dan Vanderkam Date: Tue, 2 Aug 2011 04:35:17 +0000 (+0300) Subject: From antrob; don't recalculate layout when updateOptions() would not change it. X-Git-Tag: v1.0.0~431 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;ds=inline;h=9ca829f2675e0be2e35d67d45dd91cc28c9c2cfe;p=dygraphs.git 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. --- diff --git a/auto_tests/misc/local.html b/auto_tests/misc/local.html index 428e444..0d653c1 100644 --- a/auto_tests/misc/local.html +++ b/auto_tests/misc/local.html @@ -27,6 +27,7 @@ +