3 ms·
I don't have a great handle on the exact details, but my suspicion is that this kind of analysis is hard to do, because it can play out differently in the micro
by steveklabnik 6y ago
I don't have a great handle on the exact details, but my suspicion is that this kind of analysis is hard to do, because it can play out differently in the micro vs macro. That is, in a naive implementation, yes, but after the compiler is done inlining and DCE-ing and yadda yadda yadda things end up looking differently in real codebases than one might assume.
I do believe there's been some discussions in C++ land about the relative performance of these approaches, though I can't find good references right this second.