[pypy-dev] round

Tuom Larsen tuom.larsen at gmail.com
Fri May 26 16:53:04 EDT 2017


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.rigo at gmail.com> wrote:
> Hi Tuom,
>
> On 26 May 2017 at 19:04, Tuom Larsen <tuom.larsen at 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.


More information about the pypy-dev mailing list