Message12034

Author jamesmudd
Recipients jamesmudd, jeff.allen, stefan.richthofer
Date 2018-06-30.12:04:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1530360294.0.0.56676864532.issue2672@psf.upfronthosting.co.za>
In-reply-to
Content
I have changed https://github.com/jythontools/jython/pull/102 to add special casing for the min int case.

I have realised why the benchmark was wrong and it was stupid. I never actually called the function I had:
    timeit.timeit('print_int', setup="from __main__ import print_int", number=1000000000)
when it should have been:
   timeit.timeit('print_int()', setup="from __main__ import print_int", number=1000000000)

So I guess looking up a function in the globals is faster in Jython for what that's worth.
History
Date User Action Args
2018-06-30 12:04:54jamesmuddsetmessageid: <1530360294.0.0.56676864532.issue2672@psf.upfronthosting.co.za>
2018-06-30 12:04:54jamesmuddsetrecipients: + jamesmudd, jeff.allen, stefan.richthofer
2018-06-30 12:04:53jamesmuddlinkissue2672 messages
2018-06-30 12:04:53jamesmuddcreate