r/C_Programming • u/SeaInformation8764 • May 26 '26
Project Small and fast vector implementation
https://github.com/ephf/vectorHello, just wanted to share this small (<150 lines) header for dynamic arrays in C. Feel free to look through it and show what could be done better or ask questions. AI was not involved in the making of this.
9
Upvotes
View all comments
Show parent comment
2
u/SeaInformation8764 May 30 '26
I just used fast because there is a relatively low overhead and because of the minimal branching, but yes I have not actually done benchmarks with large datasets or other fast implementations. This was a small project, so if you want to perform them yourself and you see that its actually quite slow, I can remove "fast" from the title.