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

join: avoid extra allocations when using -i #6774

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

jtracey
Copy link
Contributor

@jtracey jtracey commented Oct 8, 2024

In my benchmarks, this shows about 20% better performance when using join -i.

Copy link
Collaborator

@BenWiederhake BenWiederhake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

I would be happier if there was a way to test this during CI. (Keep in mind that wrong optimizations can actually degrade performance quite badly!) But I'm optimistic enough to just accept this as-is.

Cookie points if you can find a way to do it, though!

@BenWiederhake BenWiederhake merged commit 7c3a938 into uutils:main Oct 9, 2024
68 checks passed
@jtracey jtracey deleted the join-insensitive branch October 10, 2024 18:37
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