-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid deep copy in entity lookup (#2178)
We never mutate entities directly in the maps, so copying was not necessary. Also, added added a type wrapper so it's less likely someone tries mutating the returned entity. Drive-by: * Stop using proto-generated structs for Entities datastructure. * Fix lock in Clear() (fortunately, used only in tests). Part of #2170
- Loading branch information
Showing
9 changed files
with
174 additions
and
111 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
Oops, something went wrong.