extern int recursive;
extern CLogFile gLog;
static int f_defcp = 0; // default codepage
-static const int MEG = 1024 * 1024; // Mega(byte)
+static const int KILO = 1024; // Kilo(byte)
+static const int MEG = 1024 * KILO; // Mega(byte)
/**
* @brief Limit for compare by contents/quick contents.
*/
static const int CMP_SIZE_LIMIT = 2 * MEG;
+/**
+ * @brief Quick contents compare's file buffer size
+ */
+static const int WMCMPBUFF = 32 * KILO;
+
static void GetComparePaths(CDiffContext * pCtxt, const DIFFITEM &di, CString & left, CString & right);
static inline BOOL isBinaryBuf(char * bufBegin, char * bufEnd);
FILE * m_fp;
};
-// TODO: Increase WMCMPBUFF (it is set low to help shake out bugs)
-#define WMCMPBUFF 64
-
/** @brief Compare two specified files, byte-by-byte */
int DiffFileData::byte_compare_files()
{
2005-07-19 Kimmo
PATCH: [ 1238194 ] Use proper member names in MergeDiffDetailView
Src: MergeDiffDetailView.cpp MergeDiffDetailView.h
+ PATCH: [ 1236623 ] Increase Quick contents compare buffer size
+ Src: DiffWrapper.cpp
2005-07-18 Perry
BUG: [ 1232382 ] Inconsistent language name casing in Spanish UI (v2.3.4.0)