]> Kevux Git Server - fll/commit
Update: Reduce number of allocations by pre-determining size when easily possible.
authorKevin Day <thekevinday@gmail.com>
Sun, 17 Jul 2022 20:49:48 +0000 (15:49 -0500)
committerKevin Day <thekevinday@gmail.com>
Sun, 17 Jul 2022 20:50:56 +0000 (15:50 -0500)
commit99e025d4b5b1110733e4049416d848f8bc632fb3
treeabd83e6f3f303c23a9b2e21f7948fb59387ce88b
parentd414d50af62ed54ac689017ff59dd0d58feb34f9
Update: Reduce number of allocations by pre-determining size when easily possible.

There are several cases where the expected size can be calculated.
Pre-allocated the expected size to reduce reallocation and improve performance by reducing memory overhead.

I also noticed that the comment is no longer correct and that the not quoted check could be reversed.
Changing this simplified the code, slightly.
level_3/fake/c/private-make-operate.c