3 ms·
Thanks for the clarification and detailed response! I think your final two points are probably the two things I was failing to take into consideration here. I’m
by _gabe_ 3y ago
Thanks for the clarification and detailed response! I think your final two points are probably the two things I was failing to take into consideration here. I’m used to trying to profile medium-ish systems (like 40-50k lines of code) so that was the context I was bringing into this. In regards to the example listed in the article, you are absolutely right about being able to intuit where the hot spots may come from because it’s such a small isolated piece of code.
I’ve still got a long way to go in learning more about profiling, especially when it comes to JITed stuff or things with a heavy runtime. But it’s always nice to hear about how other developers approach profiling (it can feel like black magic to me a lot of the time).
Thanks for the article on escape analysis too! I’ll have to check that out in a bit :)