Page 1 of 1

add 1 point to a source: optimize the function calculation

Posted: Tue Jul 17, 2007 11:18 am
by 9333771
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,

Posted: Mon Jul 30, 2007 1:25 pm
by narcis
Hi Mariano,

I've added your request to our wish-list to be reviewed for next releases.