servo/components/servo
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
..
.cargo Add Windows packaging to create an MSI installer 2016-07-25 14:58:33 -06:00
platform/macos servo: Add an Info.plist on the Mac and opt into integrated graphics. 2016-06-08 12:29:44 -07:00
build.rs New Android suppport 2015-11-04 16:29:39 -06:00
Cargo.lock Rewrite the style sharing candidate cache. 2016-08-17 14:16:16 -07:00
Cargo.toml Update Cargo.toml 2016-08-17 09:51:49 -04:00
fake-ld.cmd Add Windows packaging to create an MSI installer 2016-07-25 14:58:33 -06:00
fake-ld.sh Add lint to ensure substitutions use the full form 2016-08-05 09:29:10 -04:00
lib.rs Add wr-debug option. 2016-08-03 10:14:40 +02:00
main.rs Print backtraces for panics, even if the constellation has closed. 2016-08-10 17:39:29 -07:00
servo.exe.manifest Fix missing namespace in Windows manifest 2016-07-27 15:16:23 -06:00