OK so I'm examining the Rust auto generated docs for the std lib (https://doc.rust-lang.org/std/index.html ) to see how it's done, but I mean like *really* examining it because I'm about to implement something similar. And my god it's masterfully done. Looks minimal but is sophisticated.
-
-
Yeah, I just did the first implementation of dumping the semantic analysis results to a pretty compact JSON file (it's far from complete info still), and for the std lib it's already 903KB. Even a simple piping through gzip brings it down to 1KB (!)
-
I'm no compression expert but I'm pretty sure 900:1 ratio is inefficient data storage
- 1 more reply
New conversation -
-
-
is there a binary format we can parse from vanilla JS? rustdoc is designed to be run as a static site generator, so we'd need to be able to parse/load the search index 100% offline
-
There's a Rust generator for full text indices compatible with elasticlunr, which is AFAIK not binary, but also not token storage.
- 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.