-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
compiler: merge co_code and co_lnotab #86383
Comments
co_consts are merged already, but I forget about code attributes other than co_consts.
|
Do you mean sharing values of co_code and co_lnotab between code objects of the same module? How much memory does this save (in absolute and relative value)? Which functions have the same co_code? |
Yes.
Maybe 1~3%, but I am not sure. I am more interested in reducing number of objects, because it will reduce import time.
For example,
Such simple functions are very common in OO-style code. @mark Shannon Sure. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: