Cache results of kempner_with_data and other related computations#258
Open
Cache results of kempner_with_data and other related computations#258
kempner_with_data and other related computations#258Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #258 +/- ##
==========================================
+ Coverage 95.10% 95.15% +0.04%
==========================================
Files 14 14
Lines 961 970 +9
==========================================
+ Hits 914 923 +9
Misses 47 47 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
Author
|
Seems there is a problem with Oscar 1.1. I'll look into it. In the meantime: any thoughts on this PR, @SoongNoonien ? |
4cb44e4 to
fb071f2
Compare
Member
Author
|
Made it work with Oscar 1.1 (see new code comment) |
Member
I'm not so sure if it is worth it. I think this makes the code less nice. |
fb071f2 to
8012233
Compare
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.
This has only a tiny impact for our "standard example" from PR #238 but still seems useful. Tests are done against current Oscar.jl master
Before:
After:
So it just saves ~100000 allocations, but that's not nothing.
I think shorter & quicker micro benchmarks are useful for quick turnaround, so here is a new "standard example" we can copy & paste around:
Before:
After:
So no change in the first scalar product, and 690 fewer in the second (which is 0.07% ... sigh).
So we really need to go back to some real profiling.