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

My experience with c++ was that the standard library data structures were pretty slow. Are you sure using push_back 3m times wasn't the problem? If you are doubling the buffer size every time you only allocate 2x as much memory as you need overall. Nothing that should turn seconds into minutes.


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

Search: