2 ms·
That's generally better when it's possible, but it's not always possible. If you do start writing assembly, you usually want to have it exist next to a higher-
by mikeash 9y ago
That's generally better when it's possible, but it's not always possible.
If you do start writing assembly, you usually want to have it exist next to a higher-level version of the code that you can toggle on and off. This lets you maintain portability (just compile the higher-level version on platforms where you don't yet have assembly) and makes it easy to try out new optimizations that wouldn't require assembly.