Ravi Vishwakarma is a dedicated Software Developer with a passion for crafting efficient and innovative solutions. With a keen eye for detail and years of experience, he excels in developing robust software systems that meet client needs. His expertise spans across multiple programming languages and technologies, making him a valuable asset in any software development project.
ICSM Computer
16-Jun-2025Quick Strategies to Reduce Memory Usage in .NET
Span<T>/Memory<T>: Efficient buffer handling without allocations.ArrayPool<T>/ObjectPool<T>: Reuse buffers/objects to avoid heap pressure.async/await:UseTask.FromResultfor sync-like returns.StringBuilder/ Interning: Efficient string handling and reuse.ToList()on Large Queries: Use deferred execution (foreach,yield).