@coded_artist @LukeAlmighty @SuperDicq
If you use arithmetic tricks to swap two values, anything that uses any of the two values in the future depends on those swap instructions, which in turn depend on both the instructions that calculated a, and the instructions that calculated b.
That may prevent CPU from doing things in parallel, or reordering instructions, which again, makes your code slow.
7/