Feb. 21, 2010
10:11 p.m.
On Fri, 2010-02-19 at 14:03 +0100, Levente Uzonyi wrote:
On Fri, 19 Feb 2010, Henrik Johansen wrote:
Well, ugly was a strong word. Reusing less, aka. shorter is a better choice, I guess.
I think the difference is 3 lines for the 4 methods.
Cheers, Henry
PS. In VisualWorks, the two perform equally. *Wishing for a Cog VM to test on* :)
There's no inlining VM available ATM (besides SqueakJ, but that can't run current images) and noone knows when one will be. And even though I didn't try it, I expect that "inlining by hand" saves time and memory.
I'm working on inlining in Exupery at the moment though progress is still slow. (Time I've two young boys)... Bryce