Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ethan_smith
on July 26, 2025
|
parent
|
context
|
favorite
| on:
Generic Containers in C: Vec
Without a capacity field, each push operation potentially triggers a realloc, causing O(n) copying and possible memory fragmentation - especially problematic for large vectors or performance-critical code.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: