> Maybe the solution is to have a smart compiler that compiles out these inefficiencies?
Compilers are software. A "smarter" compiler is probably going to consume more resources.
Compilers are software. A "smarter" compiler is probably going to consume more resources.