Skip to content

Conversation

@VolodymyrBg
Copy link
Contributor

Previously CrashRecoverySchedule::update cloned the entire instances vector and then drained a subrange, causing unnecessary O(n) allocations and copies of all Instance values on every update tick.

This change replaces self.instances.clone().drain(..).collect() with self.instances[range].to_vec() for the relevant ranges, preserving behavior and panic semantics while only cloning the actually needed subset of instances.

@vercel
Copy link

vercel bot commented Jan 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
sui-docs Ready Ready Preview, Comment Jan 29, 2026 10:40am
2 Skipped Deployments
Project Deployment Review Updated (UTC)
multisig-toolkit Ignored Ignored Preview Jan 29, 2026 10:40am
sui-kiosk Ignored Ignored Preview Jan 29, 2026 10:40am

Request Review

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.

1 participant