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 native implementation for IKVReduce in toucan2.instance.Instance #174

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

alexander-yakushev
Copy link
Contributor

Without this, if kv-reduce is called on an Instance, the code follows the slow unoptimal path of calling 'reduce' on the map and constructing MapEntries.

This happens notably in Metabase in instance->metadata (https://github.com/metabase/metabase/blob/a43b09cdfed17151e4cd2dd34feeecb3f0e012f4/src/metabase/lib/metadata/jvm.clj#L47) but I've seen it in other places too.

Without this, if kv-reduce is called on an Instance, the code follows the slow
unoptimal path of calling 'reduce' on the map and constructing MapEntries.
@camsaul
Copy link
Owner

camsaul commented Aug 26, 2024

amazing! Thank you

@camsaul camsaul merged commit 4dfb559 into camsaul:master Aug 26, 2024
8 checks passed
@camsaul
Copy link
Owner

camsaul commented Aug 26, 2024

Live in 1.0.544

@alexander-yakushev alexander-yakushev deleted the instance-reducekv branch September 20, 2024 22:05
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.

2 participants