diff options
author | nyamatongwe <devnull@localhost> | 2009-04-01 10:33:46 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2009-04-01 10:33:46 +0000 |
commit | c5842cf6443eaf1dc107e9cd234b801047031593 (patch) | |
tree | 4df3984c47fcb7a4672a4d0749c5732a3ea9d292 | |
parent | 162491302fc9a72d21ac3bc94f046181d9886101 (diff) | |
download | scintilla-mirror-c5842cf6443eaf1dc107e9cd234b801047031593.tar.gz |
Speed up increase in growth size.
Made one test run 4 times faster.
-rw-r--r-- | src/SplitVector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SplitVector.h b/src/SplitVector.h index 76f9a8f36..af4e890e3 100644 --- a/src/SplitVector.h +++ b/src/SplitVector.h @@ -43,7 +43,7 @@ protected: /// reallocating if more space needed. void RoomFor(int insertionLength) { if (gapLength <= insertionLength) { - if (growSize * 6 < size) + while (growSize < size / 6) growSize *= 2; ReAllocate(size + insertionLength + growSize); } |