tiny_httpd/examples
Simon Cruanes dc0a1f08ac
perf: add a buffer pool to reuse buffers, make ~buf mandatory
no more allocation of new buffers for each small thing, new request,
etc. Instead we keep a pool of buffers and use a weak form of RAII to
make sure we recycle them once done.

- add `with_alloc_buf` for the user to do so
- add `alloc_buf_for_stream` to tie buffer's lifetime to a byte
  stream, typically for a streaming response.
2022-04-11 22:24:09 -04:00
..
files add a VFS in examples/echo.ml 2022-03-03 22:14:44 -05:00
dune example(echo): add --pool option to use a thread pool 2022-03-31 21:28:26 -04:00
echo.ml perf: add a buffer pool to reuse buffers, make ~buf mandatory 2022-04-11 22:24:09 -04:00
run_test.sh kill %1 in test is not robust enough 2021-12-11 23:27:35 -10:00
sse_client.ml test: expect test for server-send events (linux only) 2021-07-17 22:10:15 -04:00
sse_server.ml move echo from src/examples/ to examples/ 2021-12-11 10:02:24 -05:00
test_output.txt.expected test: expect test for server-send events (linux only) 2021-07-17 22:10:15 -04:00