Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove an unnecessary allocation from RestoreBuilder.ToReferenceItems
The nested ToReferenceItem method was creating an ImmutableArray, but not using it. Went ahead and removed that line, and then since that method was only a single line, just pushed it's remaining contents to the caller. There was a surprising amount of allocations going on in this line, which I happened to find while looking at the solution load section of a speedometer trace. Overall, this was about 0.3% of allocations in this profile.
- Loading branch information