aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlscriptelement.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2015-02-15 21:16:32 -0800
committerNicholas Nethercote <nnethercote@mozilla.com>2015-02-15 21:23:35 -0800
commitedf00a50fc36e2c74a5392100a9d91a84d30a7cf (patch)
tree1f487c7915a008f68eda79352cf477927c0c7c9e /components/script/dom/htmlscriptelement.rs
parent5b2f2c55057493a6d6b1b56d02173625fbe403a8 (diff)
downloadservo-edf00a50fc36e2c74a5392100a9d91a84d30a7cf.tar.gz
servo-edf00a50fc36e2c74a5392100a9d91a84d30a7cf.zip
Avoid bloom filter churn.
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.
Diffstat (limited to 'components/script/dom/htmlscriptelement.rs')
0 files changed, 0 insertions, 0 deletions