Skip to content

fix: order signatures for getSignaturesForAddress#546

Merged
MicaiahReid merged 2 commits intomainfrom
get-signatures-ordering
Mar 5, 2026
Merged

fix: order signatures for getSignaturesForAddress#546
MicaiahReid merged 2 commits intomainfrom
get-signatures-ordering

Conversation

@MicaiahReid
Copy link
Copy Markdown
Collaborator

No description provided.

@MicaiahReid MicaiahReid changed the title feat: order signatures for getSignaturesForAddress fix: order signatures for getSignaturesForAddress Feb 28, 2026
@MicaiahReid MicaiahReid requested a review from lgalabru March 3, 2026 16:18
.unwrap_or(usize::MAX);
b_pos.cmp(&a_pos)
})
})
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't know how hot this codepath is, but it looks like we're doing a lot of cloning / copy.
When we started building Surfpool, we had limited resources and our core constraint was time to market, joining Foundation is removing some of this stress - I think we can now spend a few additional cycles on shipping optimized / memory-efficient routines.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fair enough! All clones were of Option<u64>, which isn't too bad, but agreed on updating our general approach to start optimizing. Pushed a fix! 35a1833

Copy link
Copy Markdown
Collaborator

@lgalabru lgalabru left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @MicaiahReid!

@MicaiahReid MicaiahReid merged commit fe0bef6 into main Mar 5, 2026
5 checks passed
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