CsWinRT icon indicating copy to clipboard operation
CsWinRT copied to clipboard

Perf: Minimize Heap Allocations: use disposable ref structs

Open Scottj1s opened this issue 5 years ago • 0 comments

Minimize heap allocations for marshalers by eliminating explicit try/finally and adopting ref structs with non-IDisposable Dispose and 'using var ...' pattern, as well as passing marshalers to FromAbi by ref so they can be conditionally disposed.

Scottj1s avatar Apr 23 '20 00:04 Scottj1s