diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2015-11-10 01:11:23 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2015-11-10 01:11:23 +0530 |
commit | f39faaf99471f5419710e1a3d434e5d5fab0d221 (patch) | |
tree | f42e039a8796a52baf256aa73f86ebb15cb32f06 /components/util/str.rs | |
parent | d8df028197505ca439363cdb05bed58fe9b4b726 (diff) | |
parent | 237ddc3c0cdf1d15941a25f6df18ea76a309d860 (diff) | |
download | servo-f39faaf99471f5419710e1a3d434e5d5fab0d221.tar.gz servo-f39faaf99471f5419710e1a3d434e5d5fab0d221.zip |
Auto merge of #8227 - asajeffrey:versioned_dom, r=eefriedman
Versioned dom
This PR adds versioning to the DOM. There are now node.get_version and node.get_descendent_version methods that return a counter that is bumped when the node is dirtied. This is used to implement cache invalidation for caching HTMLCollection state. Caching HTMCollections gets a 1000x speedup in the Dromaeo DOM query tests.
Addresses https://github.com/servo/servo/issues/6901, https://github.com/servo/servo/issues/3381 and https://github.com/servo/servo/issues/1916.
Replaces PR https://github.com/servo/servo/pull/6927.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8227)
<!-- Reviewable:end -->
Diffstat (limited to 'components/util/str.rs')
0 files changed, 0 insertions, 0 deletions