Mark Shannon <m...@hotpy.org> added the comment:

Do you have more details on your comparison?
I'm somewhat puzzled how a version that does no more work and has no jumps is 
slower.

The memory hit is not immediate, but making the object header immutable 
prevents changes like 
https://github.com/markshannon/cpython/commit/c73407e7b5d1a0fc794d55c6bcc91cfdc958f6c4
which would potentially save the two word per object overhead that the cyclic 
GC currently imposes.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40255>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to