-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
MNT: Reorganize non-constant global statics into structs #26607
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
baee891
MNT: move interned strings into a single global struct
ngoldbaum 69075c1
MNT: move cached imports into a global struct
ngoldbaum e5c1bd6
MNT: move cpu dispatch registry into global data struct
ngoldbaum 7719cf2
MNT: move ndarray.__array_*__ references to global data struct
ngoldbaum 3cbb68d
MNT: move sys.flags.optimize cache to global data struct
ngoldbaum 2ffcc71
MNT: set up tuple for truediv in global data struct
ngoldbaum d2ca21b
MNT: move unpack_bits LUT into global static struct
ngoldbaum a1f7200
MNT: move references to int(1) and int(0) to global static struct
ngoldbaum 26c243d
MNT: move initialization of global ArrayMethods to module initialization
ngoldbaum 536e5fb
MNT: move initialization of global tuples to global data struct
ngoldbaum 0c22126
8000
MNT: move default extobj contextvar to global data dict
ngoldbaum 90b1f38
MNT: move PyArray_SetStringFunction internals into global data struct
ngoldbaum 6a296c4
BUG: remove questionable static initialization of an array object
ngoldbaum 398f095
MNT: split global data struct into two structs
ngoldbaum 8f84875
MNT: add PyArrayMethodObject caches to static data struct
ngoldbaum 402a83c
MNT: move some thread-unsafe state in thread-unsafe state struct
ngoldbaum e43275a
MNT: make data structs static instead of heap-allocated
ngoldbaum b706536
MNT: apply sebastian's refactoring suggestions
ngoldbaum c237038
MNT: move static data structs into their own file
ngoldbaum 98ae65d
MNT: Add more global state I missed to the thread_unsafe_state struct
ngoldbaum a334ddc
MNT: verify all entries in npy_interned_str and npy_static_pydata are…
ngoldbaum 9ed317f
Apply suggestions from code review
ngoldbaum 3ae66b1
MAINT: apply more of Sebastian's suggestions
ngoldbaum File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
MNT: move interned strings into a single global struct
- Loading branch information
commit baee89118b90c676b2bcb1ad26a9a81035ebe63d
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Should this (and the others like it) check that it is not called twice?