c-cube / tiny_httpd

Minimal HTTP server using good old threads + blocking IO, with a small request router.
https://c-cube.github.io/tiny_httpd
75 stars 11 forks source link

reuse buffers with an internal buffer pool #41

Closed c-cube closed 2 years ago

c-cube commented 2 years ago

cc @anuragsoni this builds on #40. The combination of #40 and this, but using multicore, would be super interesting. However it would become important to make the buffer pool thread safe, probably using a Treiber stack to build it efficiently.

c-cube commented 2 years ago

Note: a good thing is that it seems that memory usage remains constant (low) under benchmark with wrk.