Strange... Could 0.0 be a float instead of a double? I'm not sure if that'd be faster or slower... Maybe it's time to diff the generated IL.
________________________________________ From: [EMAIL PROTECTED] On Behalf Of Chris Trimble Sent: Monday, April 17, 2006 4:57 PM To: Discussion of IronPython Subject: Re: [IronPython] Sin and Sqrt performance (Chris Trimble) On 4/17/06, Dino Viehland <[EMAIL PROTECTED]> wrote: > I wonder if Boo could have optimized away the entire loop > (in theory they could notice the calls into Math and optimize those)... > Note the 4ms is basically equal to zero because the precision > of DateTime.Now isn't very good. Oh blah! I knew something was up here... I totally messed up my ticks conversion to ms. A tick is 100ns, so it should be divide by 10k, not 1m. New stat: IP = ~5.5 seconds. Boo = ~450ms. C# = ~1.15s. I added a modulo print of i every 1m in the Boo loop to make sure it was doing the work. And the end result of j is printed, so hopefully it's doing something other than optimizing the loop out completely. - Chris _______________________________________________ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com