4 ms·
I have to disagree with your hypothesis. Hand written assembly will I doubt never match the speed of compiler optimized code for anything non-trivial, unless yo
by davidhbolton 5y ago
I have to disagree with your hypothesis. Hand written assembly will I doubt never match the speed of compiler optimized code for anything non-trivial, unless you are an expert and have spent many years developing in assembly. There are just too many tricks that compilers can do these days including out of order execution, branch pipelining optimization and so on. Compiler writers know these tricks and use them.
Besides which have you ever tried to do anything non-trivial like reading or writing database records, complex file structures in assembly? It's slow to do, tedious and very error-prone.