Hi,
We are using ColorGrid series to display our data. It appears, that the series is allocating a lot of memory. This makes its usage hardly feasible.
I am attaching a test project together with screen shots from the profiler.
What we found, is that TChart is allocating 20000 int per each x value. 500 point chart allocates 10,000,000 instances of int. Plus other objects.
The chart takes up about 155M.
It does not seem to depend on number y or z values.
We need charts of about 1000 points, and several of those (at least 4).
We tried the surface series, but the situation is similar.
Please advice.
Thank you.
ColorGrid series uses huge amount of memory
ColorGrid series uses huge amount of memory
- Attachments
-
- Profiler screen shot - path
- TestApp_500x10x50_path.png (160.62 KiB) Viewed 7612 times
-
- Profiler screen shot
- TestApp_500x10x50.png (163.2 KiB) Viewed 7609 times
-
- ColorGridTest.zip
- Tets project
- (20.93 KiB) Downloaded 405 times
Re: ColorGrid series uses huge amount of memory
Hello natallyk,
I have reviewed your code and first recommendations is that you take a look in next link where explain as you treat correctly the grids when you work with TeeChart controls, because I have realized that you didn't create the grid correctly, so, You must define your grid as a similar way as explain in the link.Could you tell us if using my suggestion your problem persist?
I hope will helps.
Thanks,
I have reviewed your code and first recommendations is that you take a look in next link where explain as you treat correctly the grids when you work with TeeChart controls, because I have realized that you didn't create the grid correctly, so, You must define your grid as a similar way as explain in the link.Could you tell us if using my suggestion your problem persist?
I hope will helps.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: ColorGrid series uses huge amount of memory
Hi,
Thank you for your reply.
I am not sure was exactly is wrong in the way we treat the grid.
In the explanation which the link points to, the suggestion is:
for x:=0 to 10 do
for z:=0 to 5 do
Series1.AddXYZ(x,random,z);
Well, we had for loop for the z variable as the inner loop. I changed it to be as below. The resulting grid is the same as before - 500x10, which is the idea exactly. (500 columns, 10 rows)
The resulting memory consumption is exactly as in the example I sent before.
The suggestion does not help. Or we misunderstood it.
for(int x = 0; x < 500; x++)
{
for(int z = 0; z < 10; z++)
{
for (int y = 0; y < 50; y++)
{
this.colorGrid1.Add(x, y, z);
}
}
}
Thank you for your reply.
I am not sure was exactly is wrong in the way we treat the grid.
In the explanation which the link points to, the suggestion is:
for x:=0 to 10 do
for z:=0 to 5 do
Series1.AddXYZ(x,random,z);
Well, we had for loop for the z variable as the inner loop. I changed it to be as below. The resulting grid is the same as before - 500x10, which is the idea exactly. (500 columns, 10 rows)
The resulting memory consumption is exactly as in the example I sent before.
The suggestion does not help. Or we misunderstood it.
for(int x = 0; x < 500; x++)
{
for(int z = 0; z < 10; z++)
{
for (int y = 0; y < 50; y++)
{
this.colorGrid1.Add(x, y, z);
}
}
}
Re: ColorGrid series uses huge amount of memory
Hello natallyk,
Ok. We have fixed your problem for next maintenance release. I recommend you to be aware at this forum, our RSS news feed, twitter and facebook accounts for new release announcements and what's implemented on them.
Thanks,
Ok. We have fixed your problem for next maintenance release. I recommend you to be aware at this forum, our RSS news feed, twitter and facebook accounts for new release announcements and what's implemented on them.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: ColorGrid series uses huge amount of memory
Thanks you!
Do you mean it is fixed in an upcoming maintenance release or in one that is already out?
Could we please have ETA in the first case or the release version in the second?
Do you mean it is fixed in an upcoming maintenance release or in one that is already out?
Could we please have ETA in the first case or the release version in the second?
Re: ColorGrid series uses huge amount of memory
Hello natallyk,
The problem is fixed for next maintenance release we will be published.Do you mean it is fixed in an upcoming maintenance release or in one that is already out?
I can't provide you a estimate date when next release will be published. As told you in previous post, I recommend you to be aware at this forum, our RSS news feed, twitter and facebook accounts for new release announcements and what's implemented on them.Could we please have ETA in the first case or the release version in the second?
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |