summaryrefslogtreecommitdiff
path: root/Include/pyport.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-11-15 15:13:40 +0100
committerVictor Stinner <victor.stinner@gmail.com>2016-11-15 15:13:40 +0100
commitc7a8f67411f45d26910c71603fe5a567f1dd6605 (patch)
treecb724562de7cb909bf6259828a9e5cab56ef50bf /Include/pyport.h
parentd5f599a39270b4fd791f7e0190bede9911bb0e52 (diff)
downloadcpython-git-c7a8f67411f45d26910c71603fe5a567f1dd6605.tar.gz
Issue #28618: Mark dict lookup functions as hot
It's common to see these functions in the top 3 of "perf report".
Diffstat (limited to 'Include/pyport.h')
-rw-r--r--Include/pyport.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index b91fc7468a..f7a16b264b 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -498,7 +498,7 @@ extern "C" {
#endif
-/* Py_HOT_FUNCTION
+/* _Py_HOT_FUNCTION
* The hot attribute on a function is used to inform the compiler that the
* function is a hot spot of the compiled program. The function is optimized
* more aggressively and on many target it is placed into special subsection of
@@ -506,7 +506,7 @@ extern "C" {
* locality.
*
* Usage:
- * int Py_HOT_FUNCTION x() { return 3; }
+ * int _Py_HOT_FUNCTION x() { return 3; }
*
* Issue #28618: This attribute must not be abused, otherwise it can have a
* negative effect on performance. Only the functions were Python spend most of