4 ms·
You just have to be careful, because in a lot of cases good algorithms have much higher effect that raw performance. Case in point: I saw a web forum once, wri
by theamk 7y ago
You just have to be careful, because in a lot of cases good algorithms have much higher effect that raw performance.
Case in point: I saw a web forum once, written entirely in assembly language. The author claimed high performance, but looking at the sources, I saw that it uses no buffering, and even a simple webpage results in thousands of write syscalls.
Whatever they saved in more efficient function prologues, they lost back in wasted context switches.
- duskwuff 7y agoI'd also be really concerned about security in that application. Web applications tend to do a lot of string processing, and naïve assembly implementations of string processing routines are likely to be vulnerable to all the same errors as a naïve C implementation -- buffer overflows, off-by-one errors, null byte injection...