Top "Micro-optimization" questions

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).

Should one use `if ($a != NULL)` or `if ($a !== NULL)` to control program flow?

This is perhaps a painfully basic question to answer, but I'm wondering about performance issues regarding using PHP's if identical !== …

php performance if-statement micro-optimization program-flow
AND faster than integer modulo operation?

It is possible to re-express: i % m as: i & (m-1) where, i is an unsigned integer m is a …

assembly arm cpu-architecture micro-optimization