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

Zeroing on allocation is much more sensible though because that way you preload the memory into your caches as opposed to on deallocation where you bring memory into cache that you know you no longer care about. Also if you do the zero on allocation, the compiler can delete it if it can prove that you write to the memory before reading to it.


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

Search: