-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-133059: Increase _PY_NSMALLPOSINTS size #133160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
dg-pb
commented
Apr 29, 2025
•
edited by bedevere-app
bot
Loading
edited by bedevere-app
bot
- Issue: Increase _PY_NSMALLPOSINTS size #133059
@@ -106,7 +106,7 @@ struct _Py_cached_objects { | |||
}; | |||
|
|||
// These would be in pycore_long.h if it weren't for an include cycle. | |||
#define _PY_NSMALLPOSINTS 257 | |||
#define _PY_NSMALLPOSINTS 1025 | |||
#define _PY_NSMALLNEGINTS 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about negative integers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Someone could indeed explore that too, but probability that it turns out that there is significant evidence to increase it is not very high.
See initial findings at faster-cpython/ideas#725 (comment)
And also, very first graph in #133059 (comment) does include negatives too. It can not be seen clearly in the graph, but there are 193 below -5, while total is 117556.