Garbage Reduction

From Kerbal Space Program Wiki
Revision as of 05:42, 1 October 2016 by Henrybauer (talk | contribs) (Created page with "==What is garbage, and why is it bad?== ==Measuring garbage production== [http://forum.kerbalspaceprogram.com/index.php?/topic/139128-113-memgraph-10010-with-stutter-reductio...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

What is garbage, and why is it bad?

Measuring garbage production

MemGraph can show you how much garbage KSP is creating. It is not broken down by mod, so to test a specific mod you'll need a copy of KSP with only that mod installed.

Best practices to avoid creating garbage

  • avoid foreach
  • using System.Linq