salvois / LargeXlsx

A .net library to write large Excel files in XLSX format with low memory consumption using streamed write.
Other
204 stars 34 forks source link

remove hot path lambdas for perf #20

Closed AntonyCorbett closed 1 year ago

AntonyCorbett commented 1 year ago

Removing pressure on SOH from allocation of closure objects. Improves perf by ~5% in large tests, but in a server environment, it may be a significant help.

salvois commented 1 year ago

That's another good catch @AntonyCorbett , I assumed that the compiler/JIT would be smart enough to optimize that out but I was clearly wrong. Thanks!