mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-10 05:03:59 -05:00
perf
This commit is contained in:
parent
1ab7d34a7d
commit
4cada7e7b6
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ let resize_cap_ self new_cap =
|
|||
|
||||
let ensure_cap self (n:int) =
|
||||
if n > A.dim self.data then (
|
||||
let new_cap = max n (A.dim self.data * 2 + 10) in
|
||||
let new_cap = max n (max 4 (A.dim self.data * 2)) in
|
||||
resize_cap_ self new_cap;
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue