you are viewing a single comment's thread
view the rest of the comments
[–] 22 points 1 year ago (10 children)

this is like when I built that web server in x86 assembly lol.

  • source
  • hideshow 10 child comments
  • [–] 7 points 1 year ago (5 children)
  • [–] 11 points 1 year ago

    I mean, just because you implemented something in a low level lang, it doesn't mean you're gonna have the fastest implementation. Even in high level langs, there's usually heavy optimization involved in things that are done all the time (e.g. web servers)

  • source
  • parent
  • [–] 9 points 1 year ago

    Meh. Even hosting static files in a RAM disk over localhost, you're 99% as good as you can be by using the sendfile() system call. The kernel can copy data from one file descriptor to another faster than any userspace program can. Implementing the Length header is a stat() call.

    If you're not on a RAM disk and not on localhost, then disk access or network throughput will predominate.

    Assembly is not magic go faster sauce.

  • source
  • parent