Skip to content

Comments

perf(rpc-types-eth): use Vec::with_capacity in Filter serialization#3653

Merged
mattsse merged 1 commit intoalloy-rs:mainfrom
0xcharry:patch-7
Feb 7, 2026
Merged

perf(rpc-types-eth): use Vec::with_capacity in Filter serialization#3653
mattsse merged 1 commit intoalloy-rs:mainfrom
0xcharry:patch-7

Conversation

@0xcharry
Copy link
Contributor

@0xcharry 0xcharry commented Feb 6, 2026

Optimizes Filter serialization by pre-allocating vector capacity when constructing the filtered_topics vector, eliminating unnecessary reallocations during the push operations.

@github-project-automation github-project-automation bot moved this to Reviewed in Alloy Feb 7, 2026
@mattsse mattsse merged commit 7f5834b into alloy-rs:main Feb 7, 2026
30 checks passed
@github-project-automation github-project-automation bot moved this from Reviewed to Done in Alloy Feb 7, 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.

2 participants