Hi,

On 29 January 2018 at 11:22, Tin Tvrtković <tinches...@gmail.com> wrote:
> It's just that doing it this way is unconventional and a little scary. Would
> we be violating a Python rule somewhere and making stuff blow up later if we
> went this way?

No, it's semantically fine.  But it comes with a heavy penalty on
PyPy.  I guess you don't see it because you measured something tiny,
like creating the instance and then throwing it away---the JIT
optimizes that to nothing at all in both cases.  Not only is the
creation time larger, but attribute access is slower, and the memory
usage is larger.


A bientôt,

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

Reply via email to