I have created a library[1] for speculative parallel computing and used lexing CSS as my test case. I think Servo could benefit from the speedups enabled by handling large, sequential tasks in parallel and wanted to make you all aware of my work. I modified rust-cssparser to do only tokenization, so the results are not perfectly comparable, but should be similar.
So far, I only get about a 1.5x speedup when running on a 4-core machine, but I'm sure there are opportunities for improving things further. Let me know if this is something the Servo project might be interested in! [1] https://github.com/haxney/speculate P.S. I'm not subscribed to the list, so please CC me on replies. -- Daniel Hackney _______________________________________________ dev-servo mailing list dev-servo@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-servo