aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.zig
diff options
context:
space:
mode:
authorRyan Liptak <squeek502@hotmail.com>2021-11-01 00:54:04 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-11-04 14:54:25 -0400
commite97feb96e4daf7d53538c9c8773d50459a59e5ee (patch)
tree33474da46590a20370d970d033a3123b620b2f81 /src/codegen.zig
parentd03e9d0b8347a74d674bdafadb71e7ddd8fdfad1 (diff)
downloadzig-e97feb96e4daf7d53538c9c8773d50459a59e5ee.tar.gz
zig-e97feb96e4daf7d53538c9c8773d50459a59e5ee.zip
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.
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions