SIGN IN SIGN UP

Replace ArrayList.init/ensureTotalCapacity pairs with initCapacity

Because ArrayList.initCapacity uses 'precise' capacity allocation, this should save memory on average, and definitely will save memory in cases where ArrayList is used where a regular allocated slice could have also be used.
R
Ryan Liptak committed
e97feb96e4daf7d53538c9c8773d50459a59e5ee
Parent: d03e9d0
Committed by Andrew Kelley <andrew@ziglang.org> on 11/4/2021, 6:54:25 PM