Commit 4737b53a authored by Stefan Behnel's avatar Stefan Behnel

Add obvious branch hint to dict caching macro.

parent 12c80767
...@@ -422,7 +422,7 @@ class __Pyx_FakeReference { ...@@ -422,7 +422,7 @@ class __Pyx_FakeReference {
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) { \ #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) { \
static PY_UINT64_T __pyx_dict_version = 0; \ static PY_UINT64_T __pyx_dict_version = 0; \
static PyObject *__pyx_dict_cached_value = NULL; \ static PyObject *__pyx_dict_cached_value = NULL; \
if (__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version) { \ if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) { \
(VAR) = __pyx_dict_cached_value; \ (VAR) = __pyx_dict_cached_value; \
} else { \ } else { \
(VAR) = __pyx_dict_cached_value = (LOOKUP); \ (VAR) = __pyx_dict_cached_value = (LOOKUP); \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment