forked from sonic-net/sonic-mgmt-common
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Our patches to the goyang/ygot library add performance optimizations by including a mutex protected cache (map) in the Entry struct. The ygot library makes copies of Entry objects during unmarshal operations which is not safe given our changes. This change moves the cache and mutex to a separate struct and adds a pointer to the new struct into the Entry struct. Now copies of Entry structs will result in both copies sharing the same cache and avoid issues around copying mutexes and maps.
- Loading branch information
Showing
2 changed files
with
191 additions
and
89 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
Oops, something went wrong.