Yup, you always have to measure.
Though my impression is that compilers tend to be fairly conservative about inlining so that don't risk the inlining being a pessimization.
Though my impression is that compilers tend to be fairly conservative about inlining so that don't risk the inlining being a pessimization.
So, statistics and heuristics.
I had a coworker who loved "force inline". A symptom was stupidly long codegen times on MSVC.