aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/css.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-09-02 23:03:47 +0000
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-09-03 12:36:34 +0200
commit40d2cbe8edb4894c29efb83d864cedc4ca401450 (patch)
treed096d2000294d7118350fd7a713570c95f568bb8 /components/script/dom/css.rs
parent2af9264cfe00701d7672e441ef63363a35da85b7 (diff)
downloadservo-40d2cbe8edb4894c29efb83d864cedc4ca401450.tar.gz
servo-40d2cbe8edb4894c29efb83d864cedc4ca401450.zip
style: Shrink CascadeData by turning the bloom filters into hash sets.
We're wasting 1kb there, which is kind of stupid. The only advantage of using a bloom filter is that memory usage doesn't increase even if there's a gazillion attribute selectors and such. But: * For IDs we already have a bunch of data structures for invalidation and such which key on the id, so the bloom filter would be a very minor thing. * For attribute selectors we don't have such a data structure, but if people used a gazillion attribute selectors we should! Differential Revision: https://phabricator.services.mozilla.com/D4668
Diffstat (limited to 'components/script/dom/css.rs')
0 files changed, 0 insertions, 0 deletions