Feature Request: Middleware/Plugin system with compression as an example
LZ4, ZStandard, LZO?
I probably won't add compression, but maybe somebody will create a pull request for it, possibly with an extendable middleware support, i.e. being able to hook the read/write and file information functions of memefs.
What you can do at the moment, is to use other filesystems that can be mounted, which act as compressing proxies. For example, you could use RClone to setup a local filesystem remote and a compress filesystem remote, which you can then mount (also uses WinFsp internally). Keep in mind that RClone only supports gzip, which is slower than the algorithms you have suggested
Okay, thanks for answer.
I will leave this issue open, because then the feature request stays visible and although I don't expect it, maybe it will motivate someone to add it. Especially a middleware system would be great, which would allow for easy extensibility with an easy-to-use API. Maybe I will add this in the future and then it would be very easy to also add a compression middleware/plugin.