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

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

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

unit testing - How to mock PreferenceManager in Android? -