4 ms·
It's not really hard to find. Stylo is a production grade component of Firefox. Below is a link to a Rust implementation of a Bloom filter used to optimize CS
by topspin 9y ago
It's not really hard to find. Stylo is a production grade component of Firefox. Below is a link to a Rust implementation of a Bloom filter used to optimize CSS selector resolution. It's well written, reasonably self contained code that is highly focused on efficiency and is in use by millions. There are a bunch of other interesting components in that directory as well.
https://github.com/servo/servo/blob/master/components/style/bloom.rs https://github.com/servo/servo/blob/master/components/style/...