2 ms·
I have noticed that great code and terrible code often have the same characteristics on profiles: in both cases, slowness is spread around everywhere.
by pclmulqdq 4y ago
I have noticed that great code and terrible code often have the same characteristics on profiles: in both cases, slowness is spread around everywhere.
- preseinger 4y agoi've noticed the opposite, usually performance is bottlenecked by specific and unpredictable hot spots
- kolbe 4y agoIn 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 https://m.youtube.com/watch?v=8uAW5FQtcvE