-
Notifications
You must be signed in to change notification settings - Fork 623
Open
Description
Would it be possible to send pre-compressed data? i.e. if one caches messages one could cache the compressed version in order to avoid compressing during every send?
e.g.
Instead of:
cache.set(key, buf)
// ...
for (const socket of sockets) (
socket.send(cache.get(key)) // compressed by uws
}cache.set(key, zlib.deflateSync(buf))
// ...
for (const socket of sockets) (
socket.send(cache.get(key))
}This would enable 2 things:
- Re-use compression
- Move compression to other thread
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels