3 ms·
How does WebKit's JITing style system compare? (As far as I'm aware, nobody else has anything like it, though it is still single-threaded as far as I'm aware.)
by gsnedders 10y ago
How does WebKit's JITing style system compare? (As far as I'm aware, nobody else has anything like it, though it is still single-threaded as far as I'm aware.)
- pcwalton 10y agoI would eventually like to look into a CSS JIT. But I would not like to just copy WebKit—I would like to look into treating CSS as a global DFA and compiling accordingly instead of looking at local optimizations only. As always, the problem with JITs, especially on the Web, that it's hard to beat the interpreter when you take compilation time into account, and most selectors you see in the wild only apply to a small number of nodes.
- notriddle 10y agoFor context, [here's an IRC discussion about implementing style matching as a single global DFA, and what it's tradeoffs would be](http://logs.glob.uno/?c=mozilla%23servo#c550146 http://logs.glob.uno/?c=mozilla%23servo#c550146).