add 1 point to a source: optimize the function calculation

Ideas and wishes for TeeChart
Post Reply
Mariano
Newbie
Newbie
Posts: 46
Joined: Fri Nov 15, 2002 12:00 am
Location: España

add 1 point to a source: optimize the function calculation

Post by Mariano » Tue Jul 17, 2007 11:18 am

Hi,

I got a candle chart with real time value. We display approx. 15’000 candles and 3-4 series with math. Function. We add a new candle or update the last one every 1-3 sec.

The problem is that the update of ONE point is pretty slow. In fact, it’s longer to process one new point that to receive one. (ie: my queue of new point don’t stop growing. This is also caused by some other code of mine.)

I did have a look in the teechart code, and it seems to me that the whole list of points of the series (with function) are recalculated every time the source data changed. But most of the function got a period property. We could imagine that only the last ‘period’ points must be recalculated when we add a point at the end of the source series.

If I miss understood the behavior of the lib or if this is fixed in v8, please excuse me. (The way the function refresh/calculate is not very very clear to me).

Context:
TeeChart pro 7.05

Thanks for your works,

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

Post by Narcís » Mon Jul 30, 2007 1:25 pm

Hi Mariano,

I've added your request to our wish-list to be reviewed for next releases.
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