> OK.  So in Gecko, we get styles a _lot_; the performance of the calls is 
> definitely very noticeable (e.g. having them inlined helps a lot).

I see, if any sort of function call is too expensive (inlining is required) 
then lots of conditionals may be the only option to avoid storing the styles on 
boxes and flows.

What about an enum of the various style lookup strategies with inlining for all 
of them. Rustc/LLVM may need to be able to inline 2 levels of function calls 
(to call the enum impl and then the value impl), and I know it isn't great at 
inlining currently.

- Joel


_______________________________________________
dev-servo mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-servo

Reply via email to