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

Add extern template declarations for common Signal types #1247

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

DanRStevens
Copy link
Collaborator

Using extern template can have compile time and object file size benefits.

There doesn't appear to be any measurable gain from this change. Compile times appear to be about the same. Object files are about the same size. I suspect we'd need a larger more complicated template class in order to see gains here.

I figure keep it around for a bit, see if we notice any difference, and if not maybe strip it out in the future. At the very least, having this as part of project history serves as some kind of documentation on how to do it. Maybe it will be more useful in the future.

Closes #1222


Related:

@DanRStevens DanRStevens merged commit 71194d0 into main Feb 26, 2025
8 checks passed
@DanRStevens DanRStevens deleted the addEventHandlerExternTemplates branch February 26, 2025 14:37
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.

Fix explicit template instantiation
1 participant