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

I was writing a library. I gave the user the option to provide me with the initial preallocation size, and a good method for guessing it.

When libraries deal with lots of things, it's generally important to expose special handling for dealing with lots of things.

Jon



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

Search: