Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

Thank you Daniel. But profiling is not good for benchmarking, it adds too much 
overhead. It can help to find narrow places, but for measuring effect of 
optimization you need to measure the raw time on non-debug build.

Semantically your changes are correct. I just want to know whether this adds a 
significant overhead. If it is, we should consider some kind of optimizations. 
It does not matter for Python implementation of BytesIO because in normal we 
use the C implementation.

----------

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

Reply via email to