<?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 : Report::ResetContent() performance.....</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Report::ResetContent() performance.....]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 04:15:14 +0000</pubDate>
  <lastBuildDate>Wed, 09 Feb 2011 05:30:16 +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=10285</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[Report::ResetContent() performance..... : This weekend I investigated this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10285&amp;PID=62471&amp;title=reportresetcontent-performance#62471</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=313">Marco1</a><br /><strong>Subject:</strong> 10285<br /><strong>Posted:</strong> 09 February 2011 at 5:30am<br /><br />This weekend I investigated this case a little deeper.<br>Long story short, it seems that string classes (esp. CString) are very slow in destruction (due to discrete delete).<br>If 50000 CStrings need to be destructed, (mem management) requires significant time.<br><br>A list full of ReportRecordItemNumbers only is fairly fast.<br><br>In the moment I'm testing STL containers and own ReportRecordItems which contains only pointers to the STL stored strings to avoid CStings. Don't know yet, if that is sooo much better.<br><br>Any suggestions are really appreciated.<br>]]>
   </description>
   <pubDate>Wed, 09 Feb 2011 05:30:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10285&amp;PID=62471&amp;title=reportresetcontent-performance#62471</guid>
  </item> 
  <item>
   <title><![CDATA[Report::ResetContent() performance..... : Has anyone found a solution for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10285&amp;PID=62404&amp;title=reportresetcontent-performance#62404</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=313">Marco1</a><br /><strong>Subject:</strong> 10285<br /><strong>Posted:</strong> 02 February 2011 at 2:38pm<br /><br />Has anyone found a solution for this?<br>I tested ResetContent (which is called during report destruction) with PerformanceTestDlg in the CJ Report sample. When I set the row count in the example to <b>10000</b> (instead of 1000) it takes about 15 seconds(!) on my notebook just for ResetContent - compiled as <b>RELEASE </b>version.<br>I know that delete is a very expensive function, but 15s for 10k rows are not acceptable.<br>Using virtual mode is not a good option due to sorting/grouping restrictions.<br><br><br>... and I already have the slight feeling that my customer won't accept that <img src="http://forum.codejock.com/smileys/smiley5.gif" border="0" alt="C&#111;nfused" title="C&#111;nfused" /><br>]]>
   </description>
   <pubDate>Wed, 02 Feb 2011 14:38:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10285&amp;PID=62404&amp;title=reportresetcontent-performance#62404</guid>
  </item> 
  <item>
   <title><![CDATA[Report::ResetContent() performance..... :  If you&amp;#039;re testing with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10285&amp;PID=33976&amp;title=reportresetcontent-performance#33976</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3717">Smucker</a><br /><strong>Subject:</strong> 10285<br /><strong>Posted:</strong> 20 April 2008 at 4:17am<br /><br />If you're testing with a compiled debug version, the C/C++ runtime libraries take a lot longer to release memory, especially for 100K items (assuming these are allocated individually). The debug code scans each block (paging it in if necessary) to check for heap corruption, etc.<br><br>For further speed, if you create your own heap <font size="3"><b><font face="Courier New, Courier, mono">HeapCreate()</font></b></font>, and use <font size="3"><b><font face="Courier New, Courier, mono">HeapAlloc()</font></b></font> to allocate only the report items, you can clear them all very quickly, by simply deleting and recreating the heap. This has a nice side effect of&nbsp; returning the memory to the system immediately, though some leak detectors may not recognize this and report all the items as leaked.<br><br>Also, if your items are always allocated by a single thread, you can create the heap using <font face="Courier New, Courier, mono" size="3"><b>HEAP_NO_SERIALIZE</b></font> flag,&nbsp; reducing locking overhead and speeding allocations.<br><br>]]>
   </description>
   <pubDate>Sun, 20 Apr 2008 04:17:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10285&amp;PID=33976&amp;title=reportresetcontent-performance#33976</guid>
  </item> 
  <item>
   <title><![CDATA[Report::ResetContent() performance..... : I have several reports that might...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10285&amp;PID=33864&amp;title=reportresetcontent-performance#33864</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=374">ddlittle</a><br /><strong>Subject:</strong> 10285<br /><strong>Posted:</strong> 17 April 2008 at 3:57pm<br /><br />I have several reports that might have 100K lines in them (not at the same level, say 1000 lines, each with 100 children).&nbsp; Populating the lines is very fast, but if my user opens another model, I do a ResetContent() prior to re-populating and that can sometimes take 500 seconds or so - which is beyond most user's patience, they think the machine is dead...<DIV>&nbsp;</DIV><DIV>I tried the example program "ReportCustomHeap" and noticed similar performance issues.&nbsp; When adding records, it's possible to pre-allocate memory, but removing them is apparently a one-at-a-time operation.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>Anybody have any ideas?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 17 Apr 2008 15:57:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10285&amp;PID=33864&amp;title=reportresetcontent-performance#33864</guid>
  </item> 
 </channel>
</rss>