Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Type "where used" analyzer - reduce memory usage
Discard method bodies after use to reduce memory usage. This lowers the overall memory required, and improves performance by reducing the number of higher GC gen collections, promotions and heap expansions
- Loading branch information
Showing
1 changed file
with
26 additions
and
6 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
70b1927
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've also converted this function from Linq to an explicit loop.
In the vast majority of Methods (where the type is not used) the Linq constructs added a significant overhead; We had to loop through the instructions 3 times, and Linq had to create a predicate for each select...