jetzig-framework / jetzig

Jetzig is a web framework written in Zig
MIT License
308 stars 15 forks source link

Switch to http.zig #67

Closed bobf closed 1 month ago

bobf commented 1 month ago

Use Karl Seguin's http.zig as HTTP server backend: https://github.com/karlseguin/http.zig

Update loggers to use new jetzig.loggers.LogQueue to offload logging to a background thread.

Numerous other optimizations to remove unneeded allocs.

Performance jump on a simple request from approx. 2k requests/second to approx. 40k requests/second (Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz).