aboutsummaryrefslogtreecommitdiff
path: root/src/git/testdata
diff options
context:
space:
mode:
authorLucas Santos <117400842+LucasSantos91@users.noreply.github.com>2023-09-30 14:43:08 -0300
committerAndrew Kelley <andrew@ziglang.org>2023-09-30 16:17:22 -0700
commit303181901b0a5e62ece5d4b786ee537a50d07709 (patch)
treefc2ce51e937ee3499bb18e64271a3928f3db1655 /src/git/testdata
parent937e8cb7051a3de537e11c2d52946f772f7449c3 (diff)
downloadzig-303181901b0a5e62ece5d4b786ee537a50d07709.tar.gz
zig-303181901b0a5e62ece5d4b786ee537a50d07709.zip
Improve (Unmanaged)ArrayList.insert
(Unmanaged)ArrayList.insert has the same inefficiency as the old insertSlice. With the new addManyAt, the solution is trivial. Also improves the test "growing memory preserves contents". In the previous implementation, if any changes were made to the ArrayList memory growth policy (function growMemory), the list could end up with enough capacity to not trigger a memory growth, defeating the purpose of the test. The new implementation more robustly triggers a memory growth.
Diffstat (limited to 'src/git/testdata')
0 files changed, 0 insertions, 0 deletions