From 76333f2c89b3dfbbbfdc47fed6590d3f64d1d835 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 3 Aug 2002 02:52:17 +0000 Subject: Changed LineVector to use an exponential allocation strategy which minimises the memory allocated for short files but avoids excessive copying for huge files. 23 Meg file load changes from 17 seconds to 3. --- src/CellBuffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/CellBuffer.h') diff --git a/src/CellBuffer.h b/src/CellBuffer.h index b5c90f57a..5cfcbfe1f 100644 --- a/src/CellBuffer.h +++ b/src/CellBuffer.h @@ -53,7 +53,7 @@ struct LineData { */ class LineVector { public: - enum { growSize = 4000 }; + int growSize; int lines; LineData *linesData; int size; -- cgit v1.2.3