3 ms·
Case in point. Read the Google engineering articles describing the work optimizing V8's memory usage. That primarily involved using profiling tools on lots of
by ilaksh 10y ago
Case in point. Read the Google engineering articles describing the work optimizing V8's memory usage. That primarily involved using profiling tools on lots of web pages and then changing the initial size of buffers.
But they still have to use relatively large buffers from an old-fashioned CS algorithm perspective and they couldn't make them smaller without impacting performance the other way. And they can't know that without doing the profiling on the whole system.
So yes you want functions to be lithe but you have to also focus some time, skills and knowledge on optimizing the entire system using tools and real-world data.