Micro-optimization is the process of meticulous tuning of small sections of code in order to address a perceived deficiency in some aspect of its operation (excessive memory usage, poor performance, etc).
We have to build Strings all the time for log output and so on. Over the JDK versions we have …
java string performance string-formatting micro-optimizationI was thinking this morning here, what would be the fastest way to reverse a number of positive to negative …
c++ visual-c++ x86 micro-optimization visual-c++-2012Is there any (non-microoptimization) performance gain by coding float f1 = 200f / 2 in comparision to float f2 = 200f * 0.5 A professor of …
c++ floating-point micro-optimizationWhich of the following techniques is the best option for dividing an integer by 2 and why? Technique 1: x = x >&…
c++ c optimization division micro-optimizationIs it possible to divide an unsigned integer by 10 by using pure bit shifts, addition, subtraction and maybe multiply? Using …
math bit micro-optimization low-level integer-divisionAll the following instructions do the same thing: set %eax to zero. Which way is optimal (requiring fewest machine cycles)? …
performance assembly optimization x86 micro-optimizationThis question is merely for me as I always like to write optimized code that can run also on cheap …
php performance micro-optimizationI've been trying to optimize some extremely performance-critical code (a quick sort algorithm that's being called millions and millions of …
performance language-agnostic optimization micro-optimizationIn another question, the accepted answer suggested replacing a (very cheap) if statement in Python code with a try/except …
python performance exception micro-optimizationI'm looking to take an IEEE double and remove any integer part of it in the most efficient manner possible. …
c floating-point double micro-optimization bit-manipulation