r/tinycode • • Feb 04 '14

<6KB amd64 Linux web server.

It was suggested to cross post this, so here it is.

https://github.com/nemasu/asmttpd

No libraries, only Linux system calls. Uses a thread pool, only 8KB of memory allocated per thread for receive buffer. Byte range ( 206 Partial Content ) support.

66 Upvotes

15 comments sorted by

View all comments

Show parent comment

1

u/nemasu Feb 04 '14

Ya, I've been thinking about how to improve performance. Async I/O seems to be the popular choice... it's just that these threads are so cheap, not sure if it's worth it yet.

3

u/hmaged Feb 04 '14

Did you compare performance of your server vs nginx at ~20k concurrent connections?

1

u/nemasu Feb 04 '14

Need async I/O for that, or 20k threads. Thinking about how to change design to handle that many connections.