aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2002-08-03 02:52:17 +0000
committernyamatongwe <unknown>2002-08-03 02:52:17 +0000
commit76333f2c89b3dfbbbfdc47fed6590d3f64d1d835 (patch)
treec53587cb73821b59d817fa3dda4f5cebfb2430f0 /src/CellBuffer.h
parentbd9e60e9776f3c57fe42312ea7f64011dd350e8f (diff)
downloadscintilla-mirror-76333f2c89b3dfbbbfdc47fed6590d3f64d1d835.tar.gz
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.
Diffstat (limited to 'src/CellBuffer.h')
-rw-r--r--src/CellBuffer.h2
1 files changed, 1 insertions, 1 deletions
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;