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

Fix for slow compilation with apple-clang #650

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rothmichaels
Copy link

The new version of the Representation concept using detail::ScalarRepresentation, detail::ComplexRepresentation, detail::VectorRepresentation, detail::TensorRepresentation was causing some translation units to take two orders of magnitude longer to compile. This was observed with Xcode 15.1 and 15.4.

As a workaround use the old implementation of Representation when building with apple-clang.

The new implementation should be tested with Xcode 16 to see if this workaround needs to be applied to all shipping versions of apple-clang or <16.

More investigation could be done to try to allow the new constrained behavior in a more efficient way now that we have isolated the issue.

The new version of the `Representation` concept using
`detail::ScalarRepresentation`, `detail::ComplexRepresentation`,
`detail::VectorRepresentation`, `detail::TensorRepresentation` was
causing some translation units to take two orders of magnitude longer to
compile.  This was observed with Xcode 15.1 and 15.4.

As a workaround use the old implementation of `Representation` when
building with apple-clang.

The new implementation should be tested with Xcode 16 to see if this
workaround needs to be applied to all shipping versions of apple-clang
or <16.

More investigation could be done to try to allow the new constrained
behavior in a more efficient way now that we have isolated the issue.
@mpusz
Copy link
Owner

mpusz commented Nov 26, 2024

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.

2 participants