Skip to content

Conversation

@Snezhkko
Copy link

Previously FileProgressStore::save was reading the same file twice: once into raw_content to check for emptiness and then again inside serde_json::from_slice. This added an extra system call, allocation and parse input without changing the observable behavior.

This change reuses the already read raw_content buffer when deserializing the existing JSON state. The logic for handling missing, empty or invalid files remains the same, but we avoid redundant work on every save call.

@vercel
Copy link

vercel bot commented Dec 19, 2025

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

Project Deployment Review Updated (UTC)
sui-docs Ready Ready Preview, Comment Dec 19, 2025 8:25am
2 Skipped Deployments
Project Deployment Review Updated (UTC)
multisig-toolkit Ignored Ignored Preview Dec 19, 2025 8:25am
sui-kiosk Ignored Ignored Preview Dec 19, 2025 8:25am

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