uWebSockets.js
uWebSockets.js copied to clipboard
DeclarativeResponse is slower than encrypted cached gzip !?
As in title .. I tried to improve some of the requests but no luck here.
On my test with autocannon I have sent encrypted data via DeclarativeResponse - the time/performance was much worse than sending the same data with function and (res...end(data)).
version that I'm using : 20.51.0
Other issue is that DecalrativeResponse is missing in ESM declaration file.
This makes no sense. Unless you used res.tryEnd.
DeclarativeResponse just uses res.end so it is bad for big data.