logoalt Hacker News

steveklabnikyesterday at 3:39 PM2 repliesview on HN

The Rust version of this is "turn .iter() into .par_iter()."

It's also true that for both, it's not always as easy as "just make the for loop parallel." Stylo is significantly more complex than that.

> to this I sigh in chrome.

I'm actually a Chrome user. Does Chrome do what Stylo does? I didn't think it did, but I also haven't really paid attention to the internals of any browsers in the last few years.


Replies

pjmlpyesterday at 3:59 PM

And the C++ version is add std::execution::par_unseq as parameter to the ranges algorithm.

show 1 reply
nurettinyesterday at 4:17 PM

Afaik it does all styling and layout in the main thread and offloads drawing instructions to other threads (CompositorTileWorker) and it works fine?

show 1 reply