News for hackers. Stuff that matters.
Re:Freqfs: In-memory filesystem cache for Rust by __s on Friday October 01, 2021 @05:36PM (#28723652)
Unfortunately this doesn't meet my use case (which they list as an intended use case): serving static assets over http. I currently use an in-memory cache without eviction. It doesn't meet my requirements because I store the in-memory content precompressed

https://github.com/serprex/openEtG/blob/master/src/rs/server...

edit: seems it can. Nice

Re:Freqfs: In-memory filesystem cache for Rust by haydnv on Friday October 01, 2021 @05:44PM (#28723713)
I think if you call your precompression function in FileLoad::load it should do what you need--please file an issue if this is not the case: https://github.com/haydnv/freqfs/issues
Re:Freqfs: In-memory filesystem cache for Rust by jagged-chisel on Friday October 01, 2021 @05:39PM (#28723675)
I think I don't understand the problem. Precompressed files are still files and can be cached.
Re:Freqfs: In-memory filesystem cache for Rust by WJW on Friday October 01, 2021 @05:42PM (#28723702)
I think what they mean is that they want the file on disk to be uncompressed but the file in memory to be compressed.