On Thu, Feb 14, 2013 at 3:48 PM, Brian Anderson <bander...@mozilla.com>wrote:
> I haven't actually created a DOM-related milestone yet because we haven't > come up with a goal that I'm satisfied with ("create working dom bindings" > is vague). Things we've considered as short-term bindings goals are canvas > and WebGL. Does anybody have suggestions here? > I think it's critical to examine the performance of Servo DOM+layout at its most vulnerable, which I think is when JS is synchronously pounding on it. A couple of microbenchmarks spring to mind: 1) DOM bindings performance for simple DOM operations, e.g. for (var i = 0; i < 1000000; ++i) { element.setAttribute("class", "foo"); } 2) Harder: performance of synchronous layout, e.g. for (var i = 0; i < 100000; ++i) { element.setAttribute("style", "width:" + i + "px"); element.getBoundingClientRect().width; } Showing Servo competitive on both of those would go a long way towards validating the architecture IMHO. Stuff like canvas, WebGL, floats etc is far less interesting to me. There's no reason to believe they'd be hard to make performant in Servo. Rob -- Wrfhf pnyyrq gurz gbtrgure naq fnvq, “Lbh xabj gung gur ehyref bs gur Tragvyrf ybeq vg bire gurz, naq gurve uvtu bssvpvnyf rkrepvfr nhgubevgl bire gurz. Abg fb jvgu lbh. Vafgrnq, jubrire jnagf gb orpbzr terng nzbat lbh zhfg or lbhe freinag, naq jubrire jnagf gb or svefg zhfg or lbhe fynir — whfg nf gur Fba bs Zna qvq abg pbzr gb or freirq, ohg gb freir, naq gb tvir uvf yvsr nf n enafbz sbe znal.” [Znggurj 20:25-28] _______________________________________________ dev-servo mailing list dev-servo@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-servo