OSDN Git Service

2005-10-03 Perry
authorPerry Rapp <elsapo@users.sourceforge.net>
Mon, 3 Oct 2005 18:31:04 +0000 (18:31 +0000)
committerPerry Rapp <elsapo@users.sourceforge.net>
Mon, 3 Oct 2005 18:31:04 +0000 (18:31 +0000)
 PATCH: [ 1302710 ] generating a report is slow
  Perry added comments explaining one code line
  Src: DirCmpReport.cpp

Src/Changes.txt
Src/DirCmpReport.cpp

index f6e0286..308f7d5 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-03 Perry
+ PATCH: [ 1302710 ] generating a report is slow
+  Perry added comments explaining one code line
+  Src: DirCmpReport.cpp
+
 2005-10-03 Kimmo
  PATCH: [ 1302710 ] generating a report is slow
   Submitted by Takashi Sawanaka
index cf22ef1..92ecf09 100644 (file)
@@ -82,6 +82,8 @@ BOOL DirCmpReport::GenerateReport(CString &errStr)
                        return FALSE;
                }
 
+               // Preallocate large CString buffer to speed up building the string
+               // (because CString::Append is not smart enough to preallocate exponentially)
                m_sReport.GetBufferSetLength(m_pList->GetItemCount() * 512);
 
                if (dlg.m_nReportType == REPORT_SIMPLEHTML)