Skip to content
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

Investigate benefits of __slots__ for core classes #449

Open
rileyjmurray opened this issue Jun 5, 2024 · 0 comments
Open

Investigate benefits of __slots__ for core classes #449

rileyjmurray opened this issue Jun 5, 2024 · 0 comments

Comments

@rileyjmurray
Copy link
Contributor

During my thesis work I wrote Python code that created millions of objects from a particular lightweight class. I was able to speed up the code significantly by using __slots__ for the class in question. I suggest we investigate the possibility of speeding up some of pyGSTi's core classes with this approach.

(I'm just opening this issue as the ideas occurs to me. I'll come back with specific suggestions later.)

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

No branches or pull requests

1 participant