The Bit Shift Paradox: How "Optimizing" Can Make Code 6× Slower
Programming Tech Brief By HackerNoon - A podcast by HackerNoon
Categories:
This story was originally published on HackerNoon at: https://hackernoon.com/the-bit-shift-paradox-how-optimizing-can-make-code-6-slower. Caching bit shifts looks smart but makes code up to 6× slower. Check more stories related to programming at: https://hackernoon.com/c/programming. You can also check exclusive content about #performance, #coding-challenge, #caching, #bit-shift, #caching-bit-shift, #code-optimization, #python-code-optimization, #cpu-architecture, and more. This story was written by: @ronklein. Learn more about this writer by checking @ronklein's about page, and for more stories, please visit hackernoon.com. Caching bit shifts looks smart but makes code up to 6× slower.
