UseCustomHeap(), ReserveSize(), other.... |
Post Reply |
Author | |
ddlittle
Senior Member Joined: 19 February 2004 Location: United States Status: Offline Points: 132 |
Post Options
Thanks(0)
Posted: 13 March 2008 at 10:59pm |
I have five separate reports, each with around 150,000 lines (sometimes even more). right now, i populate each row one at a time, and it takes around 30 seconds to complete. I noticed a couple of functions in 11.22 called UseReportCustomHeap(), Use RowBatchAllocation(), and CXTPReportRows::ReserveSize(). I put UseReportCustomHeap() and UseRowBatchAllocation() in my apps, initinstance and it made report creation take 40 seconds instead of 30. I removed UseRowBatchAllocation() and it reverted to 30 seconds. I found ReserveSize() in the header, which I call like this:
m_DrawingReport.GetRows()->ReserveSize(25000,25000);
That had noaffect at all. I stepped into it, and it calls CArray::SetSize(), but changes my numbers to growby 1 and maxsize=10. I must be using them wrong.
Does anybody have any ideas?
Thanks!
- David Little
- Houston Texas
|
|
markr
Senior Member Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
|
Hi David,
The best explanation I've found of these methods can be found here: https://forum.codejock.com/forum_posts.asp?TID=7921&KW=UseReportCustomHeap Look for Sergey's response post, currently near the bottom of the thread. This is the kind of stuff I wish CodeJock would address more thoroughly - either via the product documentation or in knowledge base articles of some kind. Anyway, I believe you'll need to produce a release build of your application to notice the effect of these methods. |
|
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 |