c# - Common memory optimization -


what common memory optimizations in csharp, dotnet 2.0. wanted see if there common things people may not doing default in winform app

  • use structs small wrapper objects avoid heap fragmentation
  • think object lifetimes, large objects not end on loh unless intend them to
  • think allocations inside of loop
  • make sure dynamically sized array of reasonable size, otherwise partition problem

Comments