decreasing performances

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Neri Alamanni

decreasing performances

Post by Neri Alamanni » Sat Nov 02, 2002 4:35 pm

Hi

my application has to draw onto a dynamical graph the time history of the pressure level produced by a compressor. The data points are acquired every second. I noticed that the update of the graph takes more ad more time (starting from 500 ms up to 2000 ms after 6 hours of execution).
Please notice that
a) the timeseries dataset are "trimmed" to fixed extent of 300 points, using
the .delete method removing the first point.
b) running Jprofiler i noticed that the update of the graph takes more and more time and more and more CPU time. Why?

Any ideas, suggestions?

Thank you

neri alamanni

Dave Gilbert

Re: decreasing performances

Post by Dave Gilbert » Mon Nov 04, 2002 10:16 am

Hi Neri,

Did you write your own code to "trim" the dataset?

If you are using the BasicTimeSeries class, there are two ways (new in 0.9.4) to limit the amount of data retained in the dataset, setHistoryCount(int) and setMaximumItemCount(int). It sounds like you should use setMaximumItemCount(300) for your dataset.

If that doesn't help, can you send me a sample application that illustrates the problem?

Regards,

DG

Neri Alamanni

Re: decreasing performances

Post by Neri Alamanni » Thu Nov 07, 2002 9:31 am

Hi Dave

thanks for the tip. I 'll keep you informed about the results

thanks again

neri

Locked