OSDN Git Service

PATCH: [ 1302710 ] generating a report is slow
authorKimmo Varis <kimmov@gmail.com>
Mon, 3 Oct 2005 16:53:59 +0000 (16:53 +0000)
committerKimmo Varis <kimmov@gmail.com>
Mon, 3 Oct 2005 16:53:59 +0000 (16:53 +0000)
 - submitted by Takashi Sawanaka

Src/Changes.txt
Src/DirCmpReport.cpp

index d73cdf0..e29219a 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-03 Kimmo
+ PATCH: [ 1302710 ] generating a report is slow
+  Submitted by Takashi Sawanaka
+  Src: DirCmpReport.cpp
+
 2005-10-02 Perry
  PATCH: [ 1253949 ] cosmetic comment fix
   Src: DiffItem.h
index 3747d0d..cf22ef1 100644 (file)
@@ -82,6 +82,8 @@ BOOL DirCmpReport::GenerateReport(CString &errStr)
                        return FALSE;
                }
 
+               m_sReport.GetBufferSetLength(m_pList->GetItemCount() * 512);
+
                if (dlg.m_nReportType == REPORT_SIMPLEHTML)
                {
                        GenerateHTMLHeader();