[issue28618] Decorate hot functions using __attribute__((hot)) to optimize Python

STINNER Victor report at bugs.python.org
Tue Nov 22 05:30:20 EST 2016


STINNER Victor added the comment:

FYI I wrote an article about this issue:
https://haypo.github.io/analysis-python-performance-issue.html

Sadly, it seems like I was just lucky when adding __attribute__((hot)) fixed the issue, because call_method is slow again!

* acde821520fc (Nov 21): 16.3 ms
* 2a14385710dc (Nov 22): 24.6 ms (+51%)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28618>
_______________________________________


More information about the Python-bugs-list mailing list