For context, cacache was the first bit of rewriting in what would become npm@5 several years ago, and is still one of the libraries I'm most proud of writing in my time at npm. Rewriting it in Rust as an adventure and so-much-fun! I look forward to publishing a lot more crates ☺️
So I finally got around to benchmarking cacache, and the results are in! The Rust version is literally *an order of magnitude* faster, for the same work.
18 *microseconds* per read, on the Rust side. That's also as fast as the *memoized* version on the Node side.
@jalcine that's super exciting! :o
@zkat reading these is so fun honestly <3
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!