-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch the resource slice status instead of updating (#65)
We can avoid the overhead of deep copying the entire resource slice by using jsonpatch to update only the modified items. This approach also naturally simplifies the signature of the write buffer since the same func can be used for checking the current state and building the patch. The perf overhead of full updates isn't a big deal now, but will be once we start updating it 2-3x more often (status updates). --------- Co-authored-by: Jordan Olshevski <[email protected]>
- Loading branch information
Showing
4 changed files
with
60 additions
and
56 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
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
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
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