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

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -