<?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 : [solved] Virtual mode bad performance</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : [solved] Virtual mode bad performance]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 07:58:39 +0000</pubDate>
  <lastBuildDate>Sun, 03 Jul 2016 07:48:21 +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=23068</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[[solved] Virtual mode bad performance : I have changed default value o...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23068&amp;PID=74858&amp;title=solved-virtual-mode-bad-performance#74858</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23068<br /><strong>Posted:</strong> 03 July 2016 at 7:48am<br /><br />I have changed <b>default</b> value of&nbsp;<span style="line-height: 16.8px; : rgb248, 248, 252;">CXTPReportPaintManager::m_bAllowMergeCells to <b>FALSE</b>. This will prevent excessive calls in&nbsp;</span><span style="line-height: 16.8px; : rgb248, 248, 252;">CXTPReportRows::ClearMergeHeight in non virtual mode too.<br><br>So from next release &nbsp;</span><span style="line-height: 16.8px; : rgb248, 248, 252;">CXTPReportPaintManager::m_bAllowMergeCells &nbsp;should be set to <b>TRUE</b> &nbsp;</span><span style="line-height: 16.8px; : rgb248, 248, 252;">before using merge cells.</span>]]>
   </description>
   <pubDate>Sun, 03 Jul 2016 07:48:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23068&amp;PID=74858&amp;title=solved-virtual-mode-bad-performance#74858</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Virtual mode bad performance : Hello Adrien,Thank you for this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23068&amp;PID=74849&amp;title=solved-virtual-mode-bad-performance#74849</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23068<br /><strong>Posted:</strong> 30 June 2016 at 5:30pm<br /><br />Hello Adrien,<br><br>Thank you for this important remark and proposal.<br><br>At first we need to check CXTPReportPaintManager::m_bAllowMergeCells to prevent excessive calling SetMergeHeight in non virtual mode also.<br><br>Also merged cells don't have sens in VirtualMode &nbsp;i<span style="line-height: 16.8px;">n current implementation of ReportControl. That is why you can use only<table width="99%"><tr><td><pre class="BBcode"><span style="white-space: pre;">&nbsp;   </span></span><span style="line-height: 16.8px; : rgb248, 248, 252;">if (NULL != m_pVirtualRow)<br></span><div style="line-height: 16.8px; : rgb248, 248, 252;"><span style="line-height: 16.8px; white-space: pre; : rgb255, 255, 255;">&nbsp;   </span>{</div><div style="line-height: 16.8px; : rgb248, 248, 252;"><span style="line-height: 16.8px; white-space: pre; : rgb255, 255, 255;">&nbsp;   </span><span style="line-height: 16.8px; white-space: pre; : rgb255, 255, 255;">&nbsp;   </span><span style="line-height: 16.8px;">return;</span></div><span style="line-height: 16.8px; white-space: pre;">&nbsp;   </span><span style="line-height: 16.8px; : rgb248, 248, 252;">}</span><span style="line-height: 16.8px;"></pre></td></tr></table><br>So I propose other implementation of&nbsp;</span><span style="line-height: 16.8px; : rgb248, 248, 252;">ClearMergeHeight but&nbsp;</span><span style="line-height: 16.8px;">CXTPReportPaintManager::m_bAllowMergeCells are not visible in&nbsp;</span><span style=": rgb248, 248, 252;">XTPReportRows.cpp. I want to add method CXTP</span><span style="line-height: 16.8px;">ReportControl::</span><span style=": rgb248, 248, 252;">IsMergedCellsAllowed to get access to&nbsp;</span><span style="line-height: 16.8px;">m_bAllowMergeCells&nbsp;</span><span style=": rgb248, 248, 252;">from other parts of code.<br><br>So, correction of this issue &nbsp;affects other parts of code and I can't fix and show you only&nbsp;</span><span style="line-height: 16.8px; : rgb248, 248, 252;">CXTPReportRows::ClearMergeHeight() method. &nbsp;Fix will be available in the next beta or final release.</span><span style=": rgb248, 248, 252;"><br><br><span style="line-height: 16.8px;">Regards,</span><br><span style="line-height: 16.8px;">&nbsp;Oleksandr Lebed</span></span>]]>
   </description>
   <pubDate>Thu, 30 Jun 2016 17:30:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23068&amp;PID=74849&amp;title=solved-virtual-mode-bad-performance#74849</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Virtual mode bad performance : function should look like this....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23068&amp;PID=74848&amp;title=solved-virtual-mode-bad-performance#74848</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 23068<br /><strong>Posted:</strong> 30 June 2016 at 12:34am<br /><br />function should look like this. &nbsp;Performance is at least 100 times quicker to redraw.<div><br></div><div><div>void CXTPReportRows::ClearMergeHeight()</div><div>{</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>int nCount = GetCount();</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if (NULL != m_pVirtualRow)</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>{</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>m_pVirtualRow-&gt;m_nIndex = nCount;</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>m_pVirtualRow-&gt;SetMergeHeight(-1);</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>return;</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>}</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>for (int i = 0; i &lt; nCount; i++)</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>{</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>CXTPReportRow* pRow = GetAt(i);</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>if (pRow)</div><div><span ="Apple-tab-span" style="white-space:pre">			</span>pRow-&gt;SetMergeHeight(-1);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>}</div><div>}</div></div>]]>
   </description>
   <pubDate>Thu, 30 Jun 2016 00:34:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23068&amp;PID=74848&amp;title=solved-virtual-mode-bad-performance#74848</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Virtual mode bad performance : Hi allwe use a report control...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23068&amp;PID=74847&amp;title=solved-virtual-mode-bad-performance#74847</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 23068<br /><strong>Posted:</strong> 30 June 2016 at 12:28am<br /><br />Hi all<div><br></div><div>we use a report control in virtual mode to show log entries. &nbsp;We have log files with many tens of millions of records in them.</div><div><br></div><div>There's a function in the report control that clears merge height on all rows. &nbsp;It's not optimised for virtual mode.</div><div><br></div><div><div>void CXTPReportRows::ClearMergeHeight()</div><div>{</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>int nCount = GetCount();</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>for (int i = 0; i &lt; nCount; i++)</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>{</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>CXTPReportRow* pRow = GetAt(i);</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>if (pRow)</div><div><span ="Apple-tab-span" style="white-space:pre">			</span>pRow-&gt;SetMergeHeight(-1);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>}</div><div>}</div></div><div><br></div><div>GetAt(i) always returns the m_pVirtualRow</div><div><br></div><div>so this call sets the same member on the same object to the same value tens of millions of times for us.</div><div><br></div><div>You might want to check if it's virtual mode before calling all this.</div><div><br></div><div>Adrien</div>]]>
   </description>
   <pubDate>Thu, 30 Jun 2016 00:28:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23068&amp;PID=74847&amp;title=solved-virtual-mode-bad-performance#74847</guid>
  </item> 
 </channel>
</rss>