This repository has been archived by the owner on Apr 6, 2024. It is now read-only.
[Feature Request] Apply more efficient allocate algorithm in vector
#1
Labels
vector
#1
Currently, our
vector
is too simple and have really bad performance inpush/pop
because we need to reallocate resource and executememcpy
when we add a new element to the end of thevector
. Dynamic tables described inCLRS
may be feasible in this situation.0xffff-lib/src/collections/vector.h
Lines 59 to 70 in 5aa0f1c
The text was updated successfully, but these errors were encountered: