Optimize kixi.stats.core/proportion#53
Merged
henrygarner merged 1 commit intoMastodonC:mainfrom Mar 10, 2025
Merged
Conversation
28b037b to
e341daa
Compare
Collaborator
|
Thanks for this! I'm seeing a failing I've updated |
5c2be2d to
6dc6472
Compare
Contributor
Author
|
Thank you! I've fixed the bad line and rebased onto the upstream main but tests still don't run for some reason. |
Collaborator
|
Apologies, I thought the tests would re-run for you! We still have a failing proportion-test: clj: cljs: |
6dc6472 to
d8c751c
Compare
Contributor
Author
|
Sorry about that! It should pass the tests now. |
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.
Current implementation uses vectors to keep the transitive state which allocates new vectors on each step. The proposed implementation uses a mutable array instead. Volatile is added to ensure that changes are visible between threads if somebody decides to uses this reducing function in a multi-threaded context.