3 ms·
An efficient immutable vector can be concatenated much faster without any reallocation of either array; one would probably outperform .push for bigger arrays in
by sundbry 7y ago
An efficient immutable vector can be concatenated much faster without any reallocation of either array; one would probably outperform .push for bigger arrays in this case.
- BubRoss 7y agoHow is that true? push shouldn't be reallocating the array on each call. You seem to be alluding to a linked list of arrays.