Probably optimized to the same, but it depends on the compiler. E.g., TinyCC/tcc would probably not. gcc -O3 almost certainly would. Maybe Javascript engines would only optimize it so after 10 calls and some hotspot metric got hit. How "performance safe" you should be in such things likely depends upon your presumed deployment.
- Are these constants effectively saving computations? fxn
- Are these constants effectively saving computations? cblake
- Are these constants effectively saving computatio... juancarlospaco
- Are these constants effectively saving comput... Hlaaftana
- Are these constants effectively saving co... fxn
- Are these constants effectively savi... Stefan_Salewski
- Are these constants effectively ... cblake
- Are these constants effectiv... mratsim
- Are these constants effectiv... Stefan_Salewski