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

Can be mitigated by a rope(?) structure (i.e. the vector is split into chunks of fixed size, no re-allocation required) with real pointers. It will be unsafe inside, but safe (read-only) interface seems to be possible.

Deallocation will be O(n), but still much faster than a tree.



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

Search: