Make this fst-er#2
Conversation
It's noticeably slower, but this is the generating step. It should need to be *super* fast.
|
Shitty benchmark to see if this crate is even remotely useful or if file systems caches are actually enough. tl;drSeems to work well for this specific case.
DetailsI benchmarked
NodeUsing https://www.npmjs.com/package/static-server, a quick and easy server using node's http lib and async magic PHPA quick thing I use for dev purposes sometimes sfz (Rust)10s of searching turned up https://crates.io/crates/sfz which is based on hyper and tokio, just like this crate. Installed it via homebrew. miniserve (Rust)sfz seemed slow, so I looked further and found https://crates.io/crates/miniserve, based on actix-web. I downloaded the osx binary from https://github.com/svenstaro/miniserve/releases/tag/v0.2.0. Sadly, I was not able to get the arrayvec index page, I only got the file listing. So, I cloned the repo, ran Caddy (Go)"Big league" server, written in Go, has lots of features, well-tuned, but is still super easy to install via homebrew. Note: I didn't notice at first, but static-filez |
|
Quick addendum: This is the speed of hyper's hello world (literally copied from https://hyper.rs/): Seems like we're not adding much on top of that! (So it'd actually be futile to optimize this anymore.) |
cf. #1