3 ms·
They are still using many unsafe blocks and there was an use-after-free before :P
by ishitatsuyuki 10y ago
They are still using many unsafe blocks and there was an use-after-free before :P
- andy_ppp 10y agoYes. But the point is any unsafe code can be reviewed separately and be subject to more stringent checking than the majority of code which is safe. I've been looking at the HTML parser they are writing (servo/html5ever) which is incredibly impressive and parses the hideous Daily Mail homepage in my tests in < 30ms. It uses the tendril library which contains lots and lots of unsafe code, but this library is set out to do a very specific thing which is make parsing strings much much more efficient. This is a design tradeoff that is desirable; as long as tendril can be shown to be robust it's a good decision over a slower parser.
- Manishearth 10y agoThe use after free basically had to do with spidermonkey, which has a GC, and is not 100% safe to use in Servo (we try to make it safe). The quantum projects don't involve moving Servo's DOM into Firefox (they do involve implementing lessons learned from Servo's DOM, but not the DOM itself), so this isn't an issue.