Creating this ticket to add compression support ( lz4 & snappy ) for communication between driver and C*
+1 this is long overdue.
I've been avoiding this as compression on a single core will block any other activity in Node.js, so it's unlikely that a user will want that behaviour in the driver.
Unlike zlib which uses a the libuv threadpool for compressing/decompressing, there is no lz4 / snappy that uses the threadpool... So I don't see a way to properly implement it.
Another solution would be to try out the experimental worker threads api and if queuing work to other threads could help...
worker threads are no longer experimental in Node.js 12+