Many series's causes exponential behavior

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Mike Jones
Advanced
Posts: 192
Joined: Thu Feb 01, 2007 12:00 am
Contact:

Many series's causes exponential behavior

Post by Mike Jones » Mon Mar 23, 2009 11:01 pm

In our application, we generate 1000's of series of which only 2 maybe visible. We have found that the performance of the TeeChart control exhibits exponential behavior when there are over a 100 or so series's added to the chart even though only 1 or 2 series's are visible at any one time.

I have created an example and have uploaded it to http://www.steema.net/upload/Default.aspx

There is some instructions on the main winform in the project.I had included in the solution, essentially the source project for TeeChart.dll.

If you follow the instruction on the Winform, you will end up with a chart that looks something like

Image

I produced these results on my Dell Lattitude 620, with a 1.8 Ghz dual core, with 2 Gb of RAM.

My concerns are:

1. Can this behavior be corrected so that is more linear in nature versus exponential?
2. Is this a known issue?
3. We find that the repainting will be very slow as well. It seems to behave exponentially as well when there are more than 100 series's. Has this performance issue been studied? If so, how can they be improved?
Last edited by Mike Jones on Mon Mar 30, 2009 3:20 pm, edited 1 time in total.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Mar 27, 2009 11:15 am

Hi Mike,

We have been investigating the issue here. This behavior is common accross all TeeChart versions. We don't think the problem is specific to TeeChart. To prove that we created a project (which I will send you) which contains a separate UserControl which mimics the TeeChart design but uses no proprietary TeeChart code. In both cases the time needed to "draw" a single series/myobject rises as the number of series/myobjects increases. This behavior seems to be due to the System.Collections.CollectionBase.List
which takes longer to add and retrieve objects the more objects there are in the collection.

Here are the results of the project using TeeChart series and custom UserControl respectively:

ImageImage
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Files uploaded at our website

Post by Narcís » Fri Mar 27, 2009 11:23 am

Hi Mike,

Instead of sending files by e-mail I uploaded them at our servers so that they can be used for other clients.

Project:

http://www.teechart.net/files/public/su ... rfTest.zip

UserControl:

http://www.teechart.net/files/public/su ... brary1.zip

Note that at Program.cs in PerfTest.zip you'll have to change the name of the form/class you want to use.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply