Dear list!

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?

    from timeit import timeit
    print timeit('int(sqrt(123.456)+0.5)', 'from math import sqrt')
    print timeit('int(round(sqrt(123.456)))', 'from math import sqrt')

prints:

    0.00339508056641
    1.18832707405

Thanks!
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to