Skip to content

feat(mempool): Avoid allocating in SelectedBatch query#1991

Open
Mirko-von-Leipzig wants to merge 3 commits intomainfrom
mirko/mempool-perf
Open

feat(mempool): Avoid allocating in SelectedBatch query#1991
Mirko-von-Leipzig wants to merge 3 commits intomainfrom
mirko/mempool-perf

Conversation

@Mirko-von-Leipzig
Copy link
Copy Markdown
Collaborator

@Mirko-von-Leipzig Mirko-von-Leipzig commented Apr 23, 2026

Current impl allocated every time a batch is queried for its unauthenticated notes.

Instead we now construct this list when the batch is created, avoiding the repeated allocation.

This won't have a perceivable effect at our current scale, but still a good thing to handle.

Closes #1878

@Mirko-von-Leipzig Mirko-von-Leipzig added the no changelog This PR does not require an entry in the `CHANGELOG.md` file label Apr 23, 2026
Copy link
Copy Markdown
Contributor

@kkovaacs kkovaacs left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Copy link
Copy Markdown
Collaborator

@igamigo igamigo left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog This PR does not require an entry in the `CHANGELOG.md` file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants