[issue29461] Experiment usage of likely/unlikely in CPython core
Serhiy Storchaka
report at bugs.python.org
Mon Feb 6 11:04:11 EST 2017
Serhiy Storchaka added the comment:
I also always wanted to experiment this change. But I was afraid that providing such macros can encourage of overusing it. I don't want to wrap any test for NULL or -1 with these macros.
If we expect some benefit from using these macros, I would play with them in hot loops. For example in dict lookup function (unlikely comparing keys raise an exception or dict is modified in process of searching), in codecs (unlikely illegal sequence is occurred), etc.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29461>
_______________________________________
More information about the Python-bugs-list
mailing list