News for hackers. Stuff that matters.
Re:Web server for Linux written in amd64 assembly by drv on Monday February 03, 2014 @11:26AM (#7171500)
I don't want to be too harsh - this is a fun idea, and I'm prone to silly fantasies about rewriting slow code in assembly myself - but this particular assembly doesn't take advantage of many of the "dirty tricks" that are available in low-level code.

As one example, check out the content-type detection, which is essentially a long chain of repeated strlen + strcmp; assembly language doesn't magically make bad algorithms fast.

Re:Web server for Linux written in amd64 assembly by yohanatan on Monday February 03, 2014 @04:09PM (#7173505)
Not to mention that long chain is ugly to read. I would rather see a macro defined and called multiple times than to see the same block of code copy/pasted over and over.