Hacker News new | past | comments | ask | show | jobs | submit login

I have noticed that great code and terrible code often have the same characteristics on profiles: in both cases, slowness is spread around everywhere.



In this video, David Gross says something along the lines of "if your data is laid out in a memory inefficient manner, it will be the bottleneck everywhere." If you're dependent on a database query for everything, that will be your bottleneck. If your in-memory structures are cache inefficient, that will be your bottleneck. But once you've fixed all of this (if you can), hot paths and whatnot matter

https://m.youtube.com/watch?v=8uAW5FQtcvE


i've noticed the opposite, usually performance is bottlenecked by specific and unpredictable hot spots




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: