🌐 AI搜索 & 代理 主页
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Mark first lookup as "unlikely()".
  • Loading branch information
scoder authored Aug 5, 2024
commit 7876f1cae2664278f2a96b12e18c52eed41f87b2
2 changes: 1 addition & 1 deletion Cython/Utility/ExtensionTypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ static PyObject *__Pyx_GetTypeDict(PyTypeObject *tp) {
// TODO - if we ever support custom metatypes for extension types then
// we have to modify this caching.
static Py_ssize_t tp_dictoffset = 0;
if (tp_dictoffset == 0) {
if (unlikely(tp_dictoffset == 0)) {
tp_dictoffset = __Pyx_GetTypeDictOffset();
// Note that negative dictoffsets are definitely allowed.
// A dictoffset of -1 seems unlikely but isn't obviously forbidden.
Expand Down