lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, 2020-11-23 at 08:01 -0600, Kyle Evans wrote:
The other thing to remember is that while you may still have scars
from compilers of the past, trying to outrun compiler optimizations
isn't really all that worthwhile (at least nowadays) over writing
clear and concise code for most applications.
Indeed.  Optimize the design and at the higher levels of the implementation.  One is quite unlikely to out-micro-optimize a modern compiler, and code clarity and conciseness pays off in so many ways.

Back when C really was just "the greatest macroassembler ever written," code-level micro-optimizations made sense.  But compiler technology has come a long way since then.

Will