Skip to content

Commit

Permalink
Change DOM surveyor to time-based processing logic (from chunk-based)
Browse files Browse the repository at this point in the history
The DOM surveyor will now use time-based logic to spread its work
over time. This allows the surveying to better scale down on
slower devices.

Additionally, the DOM surveyor code has been reworked to lower as
much as possible memory churning when collating nodes to survey.

This rework has been motivated after profiling the "monstrous DOM"
seen in the following page:
<https://doc.rust-lang.org/std/iter/trait.Iterator.html>

The idea is that making the DOM surveyor efficient on such
"monstrous DOM" case should make it efficient everywhere in
practice.
  • Loading branch information
gorhill committed Dec 31, 2018
1 parent 09fb354 commit 08261e3
Showing 1 changed file with 188 additions and 170 deletions.
Loading

0 comments on commit 08261e3

Please sign in to comment.