The compiler will optimize that away
Dark Created: 2021-04-01 Reading time: ~16 minutes A lot of programmers believe that compilers are magic black boxes in which you put your messy code in and get a nice optimized binary out. The hallway philosophers will often start a debate on which language features or compiler flags to use in order to capture the full power of the compilerโs magic. If you have ever seen the GCC codebase, you would really believe it must be doing some magical optimizations coming from another planet. Neverth...
Mike Acton Tony Albrecht Object Oriented Enterprise Cache Trasher Java Microbenchmark Harness Data Oriented Design Foot With
Source: blog.royalsloth.eu