On 6/13/13 5:45 PM, Joel Feenstra wrote:
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.
Rust is pretty good about inlining from what I've seen. If anything it is overly aggressive.
However, I do think that using a closure is probably the wrong approach; flags seem more appropriate to me.
Patrick _______________________________________________ dev-servo mailing list [email protected] https://lists.mozilla.org/listinfo/dev-servo

