Skip to content

Commit 97cfc14

Browse files
committed
edit a comment
1 parent 8eb1988 commit 97cfc14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Objects/typeobject.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5377,7 +5377,8 @@ PyType_GetBaseByToken(PyTypeObject *type, void *token, PyTypeObject **result)
53775377
} while (0)
53785378

53795379
if (result == NULL) {
5380-
// It is best for this PGO performance to isolate the layout check
5380+
// If we check the `result` only here, the subsequent branches
5381+
// will become trivial to optimize.
53815382
return check_base_by_token(type, token);
53825383
}
53835384
if (token == NULL || !PyType_Check(type)) {

0 commit comments

Comments
 (0)