Nadeem Vawda added the comment:

> Recursive inline _check_can_read() will be enough. Now this check calls 4 
> Python functions (_check_can_read(), readable(), _check_non_closed(), 
> closed). Recursive inlining only readable() in _check_can_read() is achieved 
> significant but less (about 30%) effect.

I've inlined readable() into _check_can_read() [3.3: 4258248a44c7 | default: 
abb5c5bde872]. This seems like a good balance between maximizing our 
performance in edge cases and not turning the code into a mess in the process ;)

Once again, thanks for your contributions!

----------

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

Reply via email to