Live data from Hacker News

How to optimize memory usage and eliminate GC pauses in .NET app

medium.com

1–5 of 5 posts

Re: How to optimize memory usage and eliminate GC pauses in .NET app

#3
It should give you pause if you find that you are spending much of your time fighting the GC.

Perhaps you're doing something very wrong in terms of object allocation and lifetime. Perhaps this GC/memory performance debugging time is well spent and expected - just as you might optimize memory usage (and VM and cache usage) to squeeze out better performance from a C++ program. Or perhaps .NET is not well suited to your requirements.

Re: How to optimize memory usage and eliminate GC pauses in .NET app

#5
post #3

It should give you pause if you find that you are spending much of your time fighting the GC. Perhaps you're doing something very wrong in terms of object allocation and lifetime. Perhaps this GC/memory performance debugging time is well spent and expected - just as you might optimize memory usage (and VM and cache usage) to squeeze out better performance from a C++ program. Or perhaps .NET is not well suited to your…

Luckily it was one time effort which allocated less than 1% of our annual development resources that year. After we've walked away from large arrays allocated in LOH - there were no issues despite further traffic growth.