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

Make Element immutable, rework its constructor, add some precompiles #66

Merged
merged 3 commits into from
Aug 17, 2021

Conversation

martinholters
Copy link
Member

This makes the Element type immutable and reworks its constructor for better inferability. Combined with a bunch of precompile calls for common elements, this reduces the time for the first call to superover(Circuit) after including examples/superover.jl by almost 30% (on recent Julia versions, a little less gain on older Julia).

As making Element immutable is, strictly speaking, breaking, the minor version is bumped and while at it, deprecations are removed.

Unlikely as it is that someone relies on the mutability of `Element`,
this is a breaking change, so also bump minor version.
@martinholters martinholters merged commit 67dffa7 into main Aug 17, 2021
@martinholters martinholters deleted the mh/rework-element branch August 17, 2021 05:06
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