3 ms·
would it have made a difference if the function was static? The compiler would then be able to deduce that it isn't used anywhere else, and thus could do this i
by chii 3y ago
would it have made a difference if the function was static? The compiler would then be able to deduce that it isn't used anywhere else, and thus could do this inline optimization.
- thesnide 3y agoGcc actually totally does that. Even doing it while not static by copy/pasting the function and enabling further optims. to me modern compilers are like voodoo magic