Ceiridge / WinFsp-MemFs-Extended

tmpfs for Windows / Fully dynamic RAM disk by extending WinFsp's memfs to be variable size and maximally resource efficient without compromising performance
GNU General Public License v3.0
51 stars 2 forks source link

Feature Request: Middleware/Plugin system with compression as an example #3

Open 0x4E69676874466F78 opened 1 year ago

0x4E69676874466F78 commented 1 year ago

LZ4, ZStandard, LZO?

Ceiridge commented 1 year ago

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

0x4E69676874466F78 commented 1 year ago

Okay, thanks for answer.

Ceiridge commented 1 year ago

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.