Repository navigation
Numba perf - #3255
Merged
Merged
Numba perf#3255
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3255 +/- ##
=======================================
Coverage 89.72% 89.72%
=======================================
Files 29 29
Lines 32500 32501 +1
Branches 5949 5949
=======================================
+ Hits 29160 29161 +1
Misses 1894 1894
Partials 1446 1446
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Member
|
What's the other half of the perf improvement from? I'm not sure making indexing sites and mutations is worth the complexity - we're already competitive with the C code, right? |
Member
Author
|
Agreed that the added complexity isn't worth the bother, but was worth checking. The other half comes from caching the child/parent lookups. We're already at 76% of the time the C code (called via Python) without these changes. |
Member
Author
Member
Author
|
@jeromekelleher Can I get a tick here to make the merge queue happy? |
jeromekelleher
approved these changes
Aug 19, 2025
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #3225
These changes in 6fa1f9c give a 25% time reduction for the JIT code for diversity on chr 21 of the simulated French Canadians.
Python API: ~34s
This branch: ~20s
Making site and mutation tracking optional is just under half of the improvement, add the cost of having an additional option.