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
How is memory affected depending on how instantitate teechart?
-
- Newbie
- Posts: 15
- Joined: Tue Nov 09, 2021 12:00 am
-
- Newbie
- Posts: 15
- Joined: Mon Jan 29, 2024 12:00 am
Re: How is memory affected depending on how instantitate teechart?
Hey Senbengtma,
Hey posting is the only way I can reach out, quick question where are you getting all your stock info?
Thanks
Hey posting is the only way I can reach out, quick question where are you getting all your stock info?
Thanks
Re: How is memory affected depending on how instantitate teechart?
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.
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: How is memory affected depending on how instantitate teechart?
Hello,
I'm sorry but I don't understand what stock info do you mean?
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |