3 ms·
Yes! There's an active Servo Layout 2.0 project going on right now, which is a revamp of layout to make it production-quality. Anthony developed some Rust itera
by pcwalton 7y ago
Yes! There's an active Servo Layout 2.0 project going on right now, which is a revamp of layout to make it production-quality. Anthony developed some Rust iterator magic to allow us to write sequential-looking code that actually runs in parallel, which is a major improvement in maintainability over what we had before.
Most of the work is currently going on out-of-tree in Simon's victor project, if you're interested: https://github.com/SimonSapin/victor https://github.com/SimonSapin/victor
- krferriter 7y agoJava added fairly seamless parallel iterators via streams but there is a huge amount of overhead there and often it is slower than normal iterators, depending on the work being done at each iteration. Hopefully Rust is able to avoid that sort of downside.
- pcwalton 7y agoThe parallelism in Servo layout is powered by Rayon, which is extensively optimized and shipping in Firefox.
- Brakenshire 7y agoFantastic, thanks!