mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
Problem: The string slice operations when a lot of data gets buffered ends up being expensive and memory-consuming. We have util.dbuffer for precisely this kind of thing. I want to keep the behavior of writebuffer being upgraded from nil to a string to full buffer since the last step involves three table allocations, where the previous buffer method only used one. Avoiding those allocations for simple writes like white space keep alive feels like it would keep memory churn down. This work was started in 2020 |
||
---|---|---|
.. | ||
http | ||
resolvers | ||
websocket | ||
adns.lua | ||
connect.lua | ||
cqueues.lua | ||
dns.lua | ||
http.lua | ||
httpserver.lua | ||
server.lua | ||
server_epoll.lua | ||
server_event.lua | ||
server_select.lua | ||
stun.lua | ||
tls_luasec.lua | ||
unbound.lua | ||
websocket.lua |