-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PrioGraphScheduler::try_schedule_transaction remove TransactionAccountLocks allocation #1760
Conversation
39d43e6
to
96866fe
Compare
@t-nelson - want to make sure I'm not an idiot with the SDK changes. As far as I know, this is not a breaking change since I am only adding an additional trait-bound on the return type. It's not actually changing the return type, just exposing to calling-code that it is also |
(yeah, i think this is correct) |
oh, one little caveat is that we're now committed to returning cloneable iter thereafter. but, i don't think this will be a significant burden. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
…tLocks allocation (anza-xyz#1760)
Problem
get_account_locks_unchecked
does some allocations for lockstry_lock_accounts
takes arbitrary iterators (clone-able) so we do not need to allocateSummary of Changes
AccountKeys::key_segment_iter
return clonable iterator. (No change to impl, just exposesclone
)AccountKeys::iter
return clonable iterator. (No change to impl, just exposesclone
)Fixes #