Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try using fst? #11

Open
killercup opened this issue Aug 8, 2019 · 0 comments
Open

Try using fst? #11

killercup opened this issue Aug 8, 2019 · 0 comments

Comments

@killercup
Copy link

Might be interesting to see whether using fst can be faster than phf and/or yield a smaller binary size. You'll probably have to build with the (compressed) contents first and then build the map using the sorted list of file paths and use (offset,len) tuples as values. Loading the map should be something like Map::from_static_slice(include_bytes!(concat!(env!("OUT_DIR"), "/index.fst"))). I've done something like this in static-filez.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant