controlflow / resharper-heapview

ReSharper Heap Allocations Viewer plugin
MIT License
303 stars 28 forks source link

Avoid classifying anonymous function type conversions #94

Closed TessenR closed 2 years ago

TessenR commented 2 years ago

Classifying anonymous function type conversions might be very expensive. E.g. in the following case it sums up to ~20% of the total daemon time in the snapshot. It looks like anonymous function types cannot be boxed so classifying them here isn't required. If a compound expression such as a tuple expression or conditional expression contains an anonymous function its conversion will still be classified but it should be a much rarer case.

image