On 5/19/13 10:38 PM, Patrick Walton wrote:
I did a very quick microbenchmark of Servo's "hard case" for layout
using the HTML document attached and came up with about 47 microseconds
per layout in Gecko. So these early results seem promising; 2
microseconds does not seem significant in comparison.
Thank you for doing that!
For cases that need layout, you're right: 2us is quite reasonable in
terms of overhead. That's awesome.
The other case we need to be able to do fast is when no layout is
needed; just layout information computed from existing data structures.
So things like the testcase in
https://bug709256.bugzilla.mozilla.org/attachment.cgi?id=580520 or the
testcase you were testing but with the style.top set removed.
The key for Gecko in those situations has been to very quickly determine
that layout is not needed and then just grab the layout data from the
frame tree. The times for that are order of tens of ns, last I checked,
so we'd need to be able to do this without a task switch. Does that
seem feasible?
-Boris
_______________________________________________
dev-servo mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-servo