Skip to content

Comments

perf(rpc-types-eth): optimize FilterSet::to_value_or_array to avoid unnecessary allocations#3532

Merged
mattsse merged 1 commit intoalloy-rs:mainfrom
Aleksandr1732:patch-5
Jan 21, 2026
Merged

perf(rpc-types-eth): optimize FilterSet::to_value_or_array to avoid unnecessary allocations#3532
mattsse merged 1 commit intoalloy-rs:mainfrom
Aleksandr1732:patch-5

Conversation

@Aleksandr1732
Copy link
Contributor

Optimizes FilterSet::to_value_or_array() to eliminate unnecessary Vec allocations and clones when the filter set is empty or contains a single element.

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

makes sense

@github-project-automation github-project-automation bot moved this to Reviewed in Alloy Jan 20, 2026
@mattsse mattsse merged commit 7bfd0c0 into alloy-rs:main Jan 21, 2026
30 checks passed
@github-project-automation github-project-automation bot moved this from Reviewed to Done in Alloy Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants