Closed as not planned
Description
Feature or enhancement
Proposal:
There are several statements in longobject.c
that still uses PyLong_FromLong(0L)
and PyLong_FromLong(1L)
.
Lines 5006 to 5008 in 67f6e08
Line 5331 in 67f6e08
And so on.
Use _PyLong_GetOne()
and _PyLong_GetZero()
can reduce null check and might reduce minor memory usage, as they use static caches.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response