Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ernst_klim
· 3y ago · 0 comments
You don't have to use an array based on realloc. You can use a vector based on linked list of memory pages, or linked list if you need deletion (or gap buffer or any other data structure depends on your needs).
Comments
[–]
yakubin
3y ago
And at that point you’re slower.