Gantt series performance
-
- Newbie
- Posts: 16
- Joined: Wed Feb 27, 2013 12:00 am
Gantt series performance
I have a Gantt series that will ultimately need to display thousands of bars. With only ~600 bars, drawing is taking upwards of 15 seconds.
I just need the Gantt to display simple, plain boxes such as those in the attached image. However, when my entire data set is loaded there will be many thousand of them.
Any suggestions to improve drawing performance? (I'm aware I could do some sort of down sampling, which I will do, but I need better chart performance at least with hundreds of boxes).\
Thanks.
I just need the Gantt to display simple, plain boxes such as those in the attached image. However, when my entire data set is loaded there will be many thousand of them.
Any suggestions to improve drawing performance? (I'm aware I could do some sort of down sampling, which I will do, but I need better chart performance at least with hundreds of boxes).\
Thanks.
Re: Gantt series performance
Hello Jeremy Johnson,
Would be very grateful if you could send us a simple project because we can reproduce exactly your problem here?
Thanks,
Would be very grateful if you could send us a simple project because we can reproduce exactly your problem here?
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 16
- Joined: Wed Feb 27, 2013 12:00 am
Re: Gantt series performance
Code is ready to go. Where shall I send it? Thanks!
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Gantt series performance
Hi Jeremy,
You can either attach it to a forums post or send it to http://www.steema.net/upload/
Thanks in advance.
You can either attach it to a forums post or send it to http://www.steema.net/upload/
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 16
- Joined: Wed Feb 27, 2013 12:00 am
Re: Gantt series performance
Thanks, the sample code has been uploaded. (Poor Gantt Performance Test.zip)
Re: Gantt series performance
Hello Jeremy Johnson,
Ok I have achieved improve your performance disabling the PenConnection of Gantt Series. I recommend you, add it after adding values in the gantt as I do in your code:
Could you tell us if it works in your end?
I hope will helps.
Thanks,
Ok I have achieved improve your performance disabling the PenConnection of Gantt Series. I recommend you, add it after adding values in the gantt as I do in your code:
Code: Select all
// Add many bars to the Gantt series
//this kills performance. i need to support large data sets, and even with down sampling I really would like to get decent performance with thousands of bars.
//
for (int i = 0; i < 500; i++)
{
_activitySeries.Add(startTime.AddSeconds(i * 10), 2, Colors.Red);
}
_activitySeries.Add(startTime.AddSeconds(iOffPanelStart * secBetweenTicks), startTime.AddSeconds(iAbsentStart * secBetweenTicks), 1, _color2);
_activitySeries.Add(startTime.AddSeconds(iAbsentStart * secBetweenTicks), startTime.AddSeconds(iAbsentEnd * secBetweenTicks), 0, _color3);
_activitySeries.ConnectingPen.Visible = false;
I hope will helps.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 16
- Joined: Wed Feb 27, 2013 12:00 am
Re: Gantt series performance
Thanks! This has improved execution time tremendously.
However, the memory usage by the Gantt series is huge. With more than around 12000 items, I get an out-of-memory exception. Memory usage in my sample app is around 850MB with 10000 items.
Is there anything that can be done to reduce memory usage?
Thanks,
Jeremy
However, the memory usage by the Gantt series is huge. With more than around 12000 items, I get an out-of-memory exception. Memory usage in my sample app is around 850MB with 10000 items.
Is there anything that can be done to reduce memory usage?
Thanks,
Jeremy
Re: Gantt series performance
Hello Jeremy,
Ok, I have made a simple modification that consist in add start and end coordinates and color, therefore, use correctly method add of Gantt series. Please see in the attached project the modification code and check if performance is improved and out-of-memory exception disappears in your machine. If you have any problems please let me know. Thanks,
Ok, I have made a simple modification that consist in add start and end coordinates and color, therefore, use correctly method add of Gantt series. Please see in the attached project the modification code and check if performance is improved and out-of-memory exception disappears in your machine. If you have any problems please let me know. Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 16
- Joined: Wed Feb 27, 2013 12:00 am
Re: Gantt series performance
Thanks, Sandra! You've saved the day.
Memory usage is now a slim 50MB for 10,000 items.
Memory usage is now a slim 50MB for 10,000 items.