-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add __slots__ class property to all compiler IR entities. (#138)
This should reduce the memory footprint of compilation since the IR entities will be represented more compactly, and should also produce a slight performance improvement because of the more-constrained object layout. Details on motivation and effects: https://docs.python.org/3/reference/datamodel.html#slots https://stackoverflow.com/questions/472000/usage-of-slots
- Loading branch information
1 parent
78939f7
commit be7f890
Showing
3 changed files
with
61 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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 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 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