mirror of
https://github.com/servo/servo.git
synced 2025-06-10 09:33:13 +00:00
When a cached bloom filter is found during traversal, there are two cases, both of which currently do unnecessary allocations. This patch avoids these allocations. In the process, it renders correct two previously-incorrect comments, and moves one of those comments into a better spot. While scrolling moderately fast all the way through the "Guardians of the Galaxy" Wikipedia page, this patch (a) avoids 1.2 million calls to `clone()` and (b) replaces 111,000 `BloomFilter::new()` calls with `clear()` calls. |
||
---|---|---|
.. | ||
canvas | ||
compositing | ||
devtools | ||
devtools_traits | ||
gfx | ||
layout | ||
layout_traits | ||
msg | ||
net | ||
plugins | ||
script | ||
script_traits | ||
servo | ||
style | ||
util |