- It’s not faster.
- If you really care, compile with assembler output for your platform and look to see.
- It doesn’t matter. This never matters. Write your infinite loops however you like.
More Related Contents:
- Optimization code for a debug function (c++11 with templates) [closed]
- What are copy elision and return value optimization?
- Why does C++ code for testing the Collatz conjecture run faster than hand-written assembly?
- Meaning of acronym SSO in the context of std::string
- Position of least significant bit that is set
- Modular arithmetics and NTT (finite field DFT) optimizations
- What are the mechanics of short string optimization in libc++?
- gcc optimization flag -O3 makes code slower than -O2
- Why does optimisation kill this function?
- Constants and compiler optimization in C++
- Fastest way to get IPv4 address from string
- while (1) Vs. for (;;) Is there a speed difference?
- GCC C++ “Hello World” program -> .exe is 500kb big when compiled on Windows. How can I reduce its size?
- C/C++: Optimization of pointers to string constants
- Which is better option to use for dividing an integer number by 2?
- Why does Clang optimize away x * 1.0 but NOT x + 0.0?
- When do compilers inline C++ code?
- Fastest implementation of sine, cosine and square root in C++ (doesn’t need to be much accurate)
- Should I unify two similar kernels with an ‘if’ statement, risking performance loss?
- Fast multiplication/division by 2 for floats and doubles (C/C++)
- Get sum of values stored in __m256d with SSE/AVX
- how to optimize matrix multiplication (matmul) code to run fast on a single processor core
- Is a logical right shift by a power of 2 faster in AVR?
- Loop with a zero execution time
- Branchless code that maps zero, negative, and positive to 0, 1, 2
- Can I hint the optimizer by giving the range of an integer?
- Optimizations for pow() with const non-integer exponent?
- STL vectors with uninitialized storage?
- New (std::nothrow) vs. New within a try/catch block
- List of common C++ Optimization Techniques [closed]