Skip to content

Add __slots__ to dataclasses #218

Merged
TheGupta2012 merged 2 commits intomainfrom
adding-slots
Jun 24, 2025
Merged

Add __slots__ to dataclasses #218
TheGupta2012 merged 2 commits intomainfrom
adding-slots

Conversation

@TheGupta2012
Copy link
Copy Markdown
Member

Summary of changes

This pull request introduces performance optimizations by enabling the use of slots in several @dataclass definitions within the src/pyqasm/elements.py file. This change reduces memory usage and improves attribute access speed for these classes.

@TheGupta2012 TheGupta2012 merged commit 1383afa into main Jun 24, 2025
1 check passed
@TheGupta2012 TheGupta2012 deleted the adding-slots branch June 24, 2025 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant