Created at https://bitbucket.org/pypy/pypy/issues/2563/slow-round
Thank you for the explanation! On Fri, May 26, 2017 at 10:34 PM, Armin Rigo <armin.r...@gmail.com> wrote: > Hi Tuom, > > On 26 May 2017 at 19:04, Tuom Larsen <tuom.lar...@gmail.com> wrote: >> I noticed that `round` seem to run very slow. Is this a known issue or >> should I file an bug report? Or am I missing something? > > You're perfectly right. Yes, please open a bug report. It looks like > an easy fix: "def round_double()" in rpython/rlib/rfloat.py is a copy > of CPython's version, but without the fast path for the case of > "round(x, 0)", which is the default. > > > A bientôt, > > Armin. _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev