growable: Multiply growable size by 2 instead of 3 when growing.
http://stackoverflow.com/questions/1100311/what-is-the-ideal-growth-rate-for-a-dynamically-allocated-array Fixes #1284.db4
parent
7c30ae8ab6
commit
0fda669750
|
@ -46,7 +46,7 @@ M: growable set-length ( n seq -- )
|
|||
] if
|
||||
length<< ;
|
||||
|
||||
: new-size ( old -- new ) 1 + 3 * ; inline
|
||||
: new-size ( old -- new ) 1 + 2 * ; inline
|
||||
|
||||
: ensure ( n seq -- n seq )
|
||||
bounds-check-head
|
||||
|
|
Loading…
Reference in New Issue