News for hackers. Stuff that matters.
Re:I built Foyer: a Rust hybrid cache that slashes S3 latency by MrCroxx on Sunday September 28, 2025 @01:47AM (#45402058)
Hi, foyer's author here. The "zero-copy in-memory abstraction" is compared to Facebook's CacheLib.

CacheLib requires entries to be copied to the CacheLib managed memory when it's inserted. It simplified some design trade-offs, but may affect the overall throughput when in-memory cache is involved more than nvm cache. FYI: https://cachelib.org/docs/Cache_Library_User_Guides/Write_da...

Foyer only requries entries to be serialized/deserialized when writing/reading from disk. The in-memory cache doesn't force a deep memory copy.

Re:I built Foyer: a Rust hybrid cache that slashes S3 latency by Hixon10 on Sunday September 28, 2025 @07:22PM (#45408945)
I see, thanks! I don't have much experience in Rust, aside from some pet projects. Which features of Rust's type system are needed to implement such behavior? (It's unclear to me why I wouldn't be able to do the same in, for example, C++.)