On 8/28/14 6:06 PM, Cameron Zwarich wrote:
I assumed that was the case, but was going to wait for his response before the
obvious follow-up question. We did a similar thing with iOS WebKit: a recursive
mutex that was only released on the turn of an event loop. It was universally
regarded as being a terrible idea, but nobody had a better solution.
This does mean that we get little-to-no parallelism with things like
interactive touch event processing, but that might just be impossible with the
web as-is.
Yeah, there's only so far we can go with the Web APIs as they exist
today. But I think that it may be worth thinking about either
introducing new APIs or ways to encourage Web authors to use existing
ones to get better parallelism. For example, in this case, Web
developers could use `setTimeout(0)`/`postMessage()`/`setImmediate()` to
drop the mutex, and if we can show that the parallelism enables real
performance gains then that's not a bad outcome.
Patrick
_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo