Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is a great comment and I guess it's good advice, but doubling vectors have never caused a problem for me, I profile, and I've had them dealing with data sets like "each side of every TCP connection traversing 1/8th of an entire tier 1 ISP backbone".

I'll steal the Python trick, because it's neat, but I don't think worrying about your resize function is a good reason to procrastinate moving away from linked lists, which are mostly evil.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: