How is memory affected depending on how instantitate teechart?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
senbengtma
Newbie
Newbie
Posts: 15
Joined: Tue Nov 09, 2021 12:00 am

How is memory affected depending on how instantitate teechart?

Post by senbengtma » Fri Feb 23, 2024 1:33 pm

I have a lot of datafeed of stockprices that should be visualised with different charttypes (selected by me).

What aspects in place about the programdesign and memoryusage.

1. is it memoryexpensive to locate many tchart components, if I have many forms for different usage or
2. Should I try to centralise everything to one form?

Can you elaborate a little about different concerns?

thanks

McSaverCharting
Newbie
Newbie
Posts: 15
Joined: Mon Jan 29, 2024 12:00 am

Re: How is memory affected depending on how instantitate teechart?

Post by McSaverCharting » Mon Feb 26, 2024 4:49 am

Hey Senbengtma,

Hey posting is the only way I can reach out, quick question where are you getting all your stock info?

Thanks

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: How is memory affected depending on how instantitate teechart?

Post by Yeray » Mon Feb 26, 2024 7:06 am

Hello,

The TChart component is like any other component. It's basically a set of properties and methods, hundreds of them.
I wouldn't say TChart is memory expensive at all, specially given all the possibilities it offers. Instead, I'd say a TChart can be memory expensive depending in the data it contains.
If the amount of data to be shown in those Charts is small, you are probably good to go with keeping those charts in memory.
However, if the data to be shown in those Charts is big, then you'll probably need to destroy and recreate the charts as the user hides/shows them.
I'd do some tests trying to replicate the use case to see the real impact and take the decision based on my own experience.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: How is memory affected depending on how instantitate teechart?

Post by Yeray » Mon Feb 26, 2024 7:07 am

Hello,
McSaverCharting wrote:
Mon Feb 26, 2024 4:49 am
where are you getting all your stock info?
I'm sorry but I don't understand what stock info do you mean?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply