Use inline and InlineIfLambda based on benchmark results. Similar to #14927 and #15709.
inline
InlineIfLambda
Status