Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modules/kvs: avoid extra treeobj_encode in store_cache
Problem: treeobj that is to be stored in the cache is encoded once to calculate its hash, and again to be stored in raw form. Just encode the treeobj in raw form, then calculate its hash and store it raw.
- Loading branch information
Showing
1 changed file
with
20 additions
and
22 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