aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-02-25 03:21:33 +0000
committernyamatongwe <unknown>2001-02-25 03:21:33 +0000
commit04a6d15f207efb0e4f367da8c3ef4570bc141a96 (patch)
tree5dcaca3a6c7ad0cef740eaa5346ed8dc36f5e194
parent2c463afd130a4b59a15c13e31a8c91d801ed2534 (diff)
downloadscintilla-mirror-04a6d15f207efb0e4f367da8c3ef4570bc141a96.tar.gz
Increased allocation chunk size for GetNearestWords as it was slow.
-rw-r--r--src/PropSet.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PropSet.cxx b/src/PropSet.cxx
index 6a93f41eb..3ceceb670 100644
--- a/src/PropSet.cxx
+++ b/src/PropSet.cxx
@@ -524,7 +524,7 @@ static unsigned int LengthWord(const char *word, char otherSeparator) {
*/
class WordAccumulator {
/// How many characters will be pre-allocated (to avoid buffer reallocation on each new word)
- enum {wordChunk = 100};
+ enum {wordChunk = 1000};
/// Length of the returned buffer of words (string)
unsigned int length;
/// Allocated size of the buffer