forked from dotnet/runtime
-
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.
SPMI: Avoid duplicate key lookups on replay (dotnet#78597)
The commonly used pattern AssertMapAndKeyExists followed by map->Get means we do two key lookups. Change the macros to return the value after we have verified that the key exists. This makes replay 2-3% faster and avoids some of the boilerplate.
- Loading branch information
1 parent
87a37b8
commit 5005b60
Showing
2 changed files
with
164 additions
and
322 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.