Open
Description
#56029 fixed allocations when inserting at the beginning of a vector even when there was capacity.
However, the fix only works with "large" vectors. With small ones (5 or less in my tests), it allocates even if there's capacity (and the capacity is not affected either)
Reproducible on julia 1.11.5 & 1.12beta3 & master
const x=Vector{Int}(undef, 5);
empty!(x)
@time insert!(x, 1, 10)
0.000001 seconds (1 allocation: 96 bytes)