servo/components/util
Emilio Cobos Álvarez 3af774bd75
Rewrite the style sharing candidate cache.
The style candidate cache had regressed a few times (see #12534), and my
intuition is that being able to disable all style sharing with a single rule in
the page is really unfortunate.

This commit redesigns the style sharing cache in order to be a optimistic cache,
but then reject candidates if they match different sibling-affecting selectors
in the page, for example.

So far the numbers have improved, but not so much as I'd wanted (~10%/20% of
non-incremental restyling time in general). The current implementation is really
dumb though (we recompute and re-match a lot of stuff), so we should be able to
optimise it quite a bit.

I have different ideas for improving it (that may or may not work), apart of the
low-hanging fruit like don't re-matching candidates all the time but I have to
measure the real impact.

Also, I need to verify it against try.
2016-08-17 14:16:16 -07:00
..
basedir.rs Restore Android to using /sdcard/servo for data, cache, and config paths 2016-06-09 12:54:15 -05:00
Cargo.toml Update serde to 0.8 (fixes #12659) 2016-08-12 18:37:27 +02:00
geometry.rs Update to euclid 0.8 2016-08-12 03:12:06 +02:00
ipc.rs Update ipc-channel to pick up the improved error reporting. 2015-11-23 16:38:39 -08:00
lib.rs Update to euclid 0.8 2016-08-12 03:12:06 +02:00
opts.rs Rewrite the style sharing candidate cache. 2016-08-17 14:16:16 -07:00
prefs.rs Use Result instead of panicking when the resource dir can't be found 2016-07-21 12:07:25 +05:30
remutex.rs Replaced mutex in constellation logging by a reentrant mutex. 2016-07-29 09:44:45 -05:00
resource_files.rs Use Result instead of panicking when the resource dir can't be found 2016-07-21 12:07:25 +05:30
thread.rs Removed panic channel, replaced by integrated logging and issue reporting. 2016-07-20 21:56:43 -05:00
thread_state.rs Upgrade to bitflags 0.6.0 and selectors 0.5.6 2016-04-30 10:14:03 -07:00