Quote Originally Posted by mhoover View Post
I'm trying to remove branches from my code so it consumes less %cpu.
Qt Code:
  1. if ( b ) {
  2. a = c;
  3. } else {
  4. a = d;
  5. }
To copy to clipboard, switch view to plain text mode 
Preload variable a before the if statement -
Qt Code:
  1. a = d;
  2. if(b)
  3. a = c;
To copy to clipboard, switch view to plain text mode