<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Using CXTPReportRows::ReserveSize</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Using CXTPReportRows::ReserveSize]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 05:35:31 +0000</pubDate>
  <lastBuildDate>Mon, 01 Oct 2007 18:39:38 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=8222</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Using CXTPReportRows::ReserveSize : Hi,If you use a significant number...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8222&amp;PID=26744&amp;title=using-cxtpreportrowsreservesize#26744</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 8222<br /><strong>Posted:</strong> 01 October 2007 at 6:39pm<br /><br />Hi,<br><br>If you use a significant number of records with your Report control, you can simply enable new optimization features:<br><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp;CXTPReportControl::UseReportCustomHeap();<br>&nbsp;CXTPReportControl::UseRowBatchAllocation();<br></pre></td></tr></table><br><br>Some methods like CXTPReportRows::ReserveSize, related to recently added optimization bunch, are public and you can use them if feel helpful.<br><br>CXTPReportRows::ReserveSize works similar to CArray::SetSize -- it prevents <a name="remarksToggle">adding elements to your array withfrequently memory reallocation (which then causes </a><a name="remarksToggle">memory</a><a name="remarksToggle"> </a><a name="remarksToggle"></a><a name="remarksToggle">fragmentation</a><a name="remarksToggle">).<br><br>--<br>WBR,<br>Serge<br></a>]]>
   </description>
   <pubDate>Mon, 01 Oct 2007 18:39:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8222&amp;PID=26744&amp;title=using-cxtpreportrowsreservesize#26744</guid>
  </item> 
  <item>
   <title><![CDATA[Using CXTPReportRows::ReserveSize :  Hello,I see that a new optimization...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8222&amp;PID=26639&amp;title=using-cxtpreportrowsreservesize#26639</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 8222<br /><strong>Posted:</strong> 29 September 2007 at 2:58pm<br /><br />Hello,<br><br>I see that a new optimization method, CXTPReportRows::ReserveSize, has been added to the report control for the 11.2 release. Could someone provide "best practices" for how this should be used?<br><br>In our case, we add records to the control on the fly, then call Populate(). So my assumption is that I should call ReserveSize(N) right before I call Populate() - where N is the number of records added in previous steps.<br><br>This is correct usage, or is there a better way?<br><br>P.S. - I am not using virtual mode.<br>]]>
   </description>
   <pubDate>Sat, 29 Sep 2007 14:58:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8222&amp;PID=26639&amp;title=using-cxtpreportrowsreservesize#26639</guid>
  </item> 
 </channel>
</rss>