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

Eh, at the point you're tuning the growth factor, you might consider just not using a dynamically sized array


Depends on whether you are talking about tuning the growth factor for a single instance, or whether you are talking about tuning the default growth factor in general.

Eg Python has put a lot of thought into their dynamic array (and dict) growth factors.




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

Search: