4 ms·
80% seems very low, in my experience it's 1% or less of the code that is a hotspot. On the other hand, we should talk about "doing stupid things", or having a
by flavius29663 3y ago
80% seems very low, in my experience it's 1% or less of the code that is a hotspot.
On the other hand, we should talk about "doing stupid things", or having a bad design/architecture. For example, if you architect your application such that each web request is serviced by 20 micro-services, and those micro-services make 20 requests of their own...no matter how fast your code is, the application will be slow.
- atq2119 3y agoI suspect the 1% number is typical only of programs that haven't been optimized. Once people start to care about performance and address these hotspots, which are often actually quite low hanging fruit, the profile starts to become flatter relatively quickly.