Ryan Liptak f49d42729a std.ArrayList: add ensureTotalCapacityPrecise and update doc comments
initCapacity did and still does use the ensureTotalCapacityPrecise logic because the initial capacity of an ArrayList is not important in terms of how it grows, so allocating a more exact slice up-front allows for saving memory when the array list never exceeds that initial allocation size. There are use cases where this precise capacity is useful outside of the `init` function, though, like in instances where the user does not call the `init` function themselves but otherwise knows that an ArrayList is empty so calling `ensureTotalCapacityPrecise` can give the same memory savings that `initCapacity` would have.

Closes #9775
2021-11-01 00:57:24 -07:00
..
2021-10-27 16:07:48 -04:00
2021-10-27 16:07:48 -04:00
2021-09-19 14:02:22 +02:00
2021-10-17 16:06:40 -04:00
2021-10-05 12:32:26 -07:00
2021-10-27 16:07:48 -04:00
2021-09-22 14:14:03 -05:00
2021-09-07 15:08:51 -04:00