From 04a6d15f207efb0e4f367da8c3ef4570bc141a96 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 25 Feb 2001 03:21:33 +0000 Subject: Increased allocation chunk size for GetNearestWords as it was slow. --- src/PropSet.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3