![]() |
CXTPReportControl performance |
Post Reply
|
| Author | |
markr
Senior Member
Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPReportControl performancePosted: 12 June 2005 at 10:48pm |
|
Hello,
I've been using CXTPReportControl (v9.60) for quite a while now, and I think the functionality is really solid. I am having a problem, though with memory usage. When I add ten to twenty thousand records to the report (which has 9 colums), memory utilization really shoots up. I need the grouping capabilities of the control, so I can't use the "virtual mode" - any general tips on getting memory usage down? Thanks, - MR |
|
![]() |
|
markr
Senior Member
Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 June 2005 at 6:23pm |
|
Is it possible to redraw a specific row of a CXTPReportControl without calling Populate() on the entire control?
- MR |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 June 2005 at 4:44am |
|
For redraw use RedrawControl instead Populate. call Populate only if records changed. |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
sserge
Moderator Group
Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 June 2005 at 4:36am |
|
Hi Mark,
Regarding memory usage: when you have 9 columns, you see that each corresponding record item contains its own information. I suppose that the biggest part of used memory is spent to storing some string items values. If these values are identical, or they could be calculated somehow at runtime, you can create a kind of specific RecordItem-derived class, which will not store the data (strings or anything) inside itself, but will have some static storage, or calculated at runtime in overridden GetCaption() method. There could be something like the following:
-- WBR, Serge |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |