uWebSockets.js icon indicating copy to clipboard operation
uWebSockets.js copied to clipboard

DeclarativeResponse is slower than encrypted cached gzip !?

Open Mupli opened this issue 1 year ago • 1 comments

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.

Mupli avatar Dec 31 '24 07:12 Mupli

This makes no sense. Unless you used res.tryEnd.

DeclarativeResponse just uses res.end so it is bad for big data.

uNetworkingAB avatar May 18 '25 07:05 uNetworkingAB