diff options
author | nyamatongwe <unknown> | 2009-04-01 10:33:46 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-04-01 10:33:46 +0000 |
commit | 9115d95dbdf2f9278f4315694b702cb8f2687e98 (patch) | |
tree | 4df3984c47fcb7a4672a4d0749c5732a3ea9d292 /src/SplitVector.h | |
parent | d95e64c7b572363c1b9f03f8c3b5a3d640cd5f72 (diff) | |
download | scintilla-mirror-9115d95dbdf2f9278f4315694b702cb8f2687e98.tar.gz |
Speed up increase in growth size.
Made one test run 4 times faster.
Diffstat (limited to 'src/SplitVector.h')
-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); } |