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 MatrixCoverage{Int} a concrete type #42

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

Conversation

LilithHafner
Copy link

This PR results in a 7x performance improvement on this use case due to eliminating some runtime dispatch.

julia> @elapsed for _ in 1:30 all_pairs(rand.((30, 18, 9, 2, 6, 3, 5))...) end
6.461240745 # bfore
0.878610926 # after

See https://docs.julialang.org/en/v1/manual/performance-tips/#Avoid-fields-with-abstract-type for why this change has such a big performance impact.

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.

None yet

1 participant