Chart is Running a bit slow.
Posted: Wed Mar 02, 2011 5:48 am
Greetings all,
I am wishing to migrate our older version of TChart to the new version (TeeChartNET2010Src_4.1.2010.11300)
especially so we can use Log mode which does not work in the older version we currently use.
But as I commented on briefly once before it seems to run a significantly slower for Drawlines than the older version we are using.
This time however I profiled TChart and can see that its spending a lot of time calling Series.CalcFirstLastVisibleIndex() it calls this method many many more times than the previous version we are using. And as a result my Drawlines are much much slower to place and move than they were before. Thats the symptom.
To test I used the same code base and simply swapped TChart version 4.0 in and profiled it looking fro the hot path, then I swapped in Tchart 4.1 (i.e. the above mentioned source) and again profiled it simply applying a Line to a chart that has an Candle series both times. You will see this in your performance profiler.
We really need Log mode our next product version release, but we cant have slow drawlines as this is also an integral part of the Chart tool our product has.
Could you please advise me whether you see the same degredation around the Series.CalcFirstLastVisibleIndex() method and whether this is a defect that will be fixed OR merely a result of new behaviour added in the latest release that requires this method to be hit so many more times.
If it by design, do you have any suggestions about what I can do to get Log mode working in the previous (4.0.2010.27961 from the properties window)
I am really hoping this is a defect (that sounds horrible doesnt it, sorry) otherwise I will have to modify the existing Tchart code I have and not take advantage of any future updates.
kind regards Phil
I am wishing to migrate our older version of TChart to the new version (TeeChartNET2010Src_4.1.2010.11300)
especially so we can use Log mode which does not work in the older version we currently use.
But as I commented on briefly once before it seems to run a significantly slower for Drawlines than the older version we are using.
This time however I profiled TChart and can see that its spending a lot of time calling Series.CalcFirstLastVisibleIndex() it calls this method many many more times than the previous version we are using. And as a result my Drawlines are much much slower to place and move than they were before. Thats the symptom.
To test I used the same code base and simply swapped TChart version 4.0 in and profiled it looking fro the hot path, then I swapped in Tchart 4.1 (i.e. the above mentioned source) and again profiled it simply applying a Line to a chart that has an Candle series both times. You will see this in your performance profiler.
We really need Log mode our next product version release, but we cant have slow drawlines as this is also an integral part of the Chart tool our product has.
Could you please advise me whether you see the same degredation around the Series.CalcFirstLastVisibleIndex() method and whether this is a defect that will be fixed OR merely a result of new behaviour added in the latest release that requires this method to be hit so many more times.
If it by design, do you have any suggestions about what I can do to get Log mode working in the previous (4.0.2010.27961 from the properties window)
I am really hoping this is a defect (that sounds horrible doesnt it, sorry) otherwise I will have to modify the existing Tchart code I have and not take advantage of any future updates.
kind regards Phil