-
Notifications
You must be signed in to change notification settings - Fork 558
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: Stop validating JSON for stored state (#2845)
Removes some validation checks when storing and retrieving state from `snap_manageState`. Since we have input sanitization on the Snap side, we can improve performance significantly when retrieving state by parsing it without additional validation. Also improves performance slightly by not using `isVaultUpdated` as the sole check for caching (as that function can be somewhat expensive to call).
- Loading branch information
1 parent
2c5a1e5
commit ec811b7
Showing
2 changed files
with
25 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"branches": 92.67, | ||
"branches": 92.73, | ||
"functions": 96.65, | ||
"lines": 97.98, | ||
"statements": 97.68 | ||
"lines": 97.99, | ||
"statements": 97.69 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters