Skip to content

Commit

Permalink
growable: Multiply growable size by 2 instead of 3 when growing.
Browse files Browse the repository at this point in the history
  • Loading branch information
erg committed Mar 11, 2015
1 parent 7c30ae8 commit 0fda669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/growable/growable.factor
Expand Up @@ -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
Expand Down

0 comments on commit 0fda669

Please sign in to comment.