Skip to content

feat: fn match_item need not include Arc#962

Merged
LoricAndre merged 1 commit intoskim-rs:masterfrom
kimono-koans:remove_arc_indirection
Feb 10, 2026
Merged

feat: fn match_item need not include Arc#962
LoricAndre merged 1 commit intoskim-rs:masterfrom
kimono-koans:remove_arc_indirection

Conversation

@kimono-koans
Copy link
Copy Markdown
Contributor

@kimono-koans kimono-koans commented Feb 10, 2026

Description of the changes

No reason to use Arc indirection here. Here, we are cloning multiple times for no reason upon every matcher run. This is slow because for each Clone and each Drop we increment and decrement the atomic ref count.

This seems like an inessential part of the skim API and we should just make this change. See: https://docs.rs/skim/1.11.2/skim/trait.MatchEngine.html#tymethod.match_item

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 10, 2026

Codecov Report

❌ Patch coverage is 93.33333% with 1 line in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/bin/main.rs 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@LoricAndre
Copy link
Copy Markdown
Contributor

This makes a lot of sense, thank you !

@LoricAndre LoricAndre merged commit e23a259 into skim-rs:master Feb 10, 2026
18 checks passed
@kimono-koans kimono-koans deleted the remove_arc_indirection branch February 14, 2026 07:28
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