I know it probably wouldn’t make much sense to do it as usually it’s faster and more logical to just rewrite performance-critical sections in a faster language, but setting that aside, is it possible to write faster CPython/JVM/CLR programs by writing portions directly in their assembly?
Share
Actually, it is. Not often mind you, but I know of at least one case (skipping the
andin MSIL makes that code a tiny bit faster). There are probably more cases, the CLR JIT compiler isn’t all that smart.