From 0167aef16a085e30d870fb69c3f91c714e47a099 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sun, 22 May 2011 18:54:47 +0100 Subject: [PATCH] repo git: turn off garbage collection by default --- SparkleLib/Git/SparkleRepoGit.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SparkleLib/Git/SparkleRepoGit.cs b/SparkleLib/Git/SparkleRepoGit.cs index cb08bc64..ddaa43d8 100644 --- a/SparkleLib/Git/SparkleRepoGit.cs +++ b/SparkleLib/Git/SparkleRepoGit.cs @@ -216,9 +216,10 @@ namespace SparkleLib { SparkleHelpers.DebugInfo ("Commit", "[" + Name + "] " + message); - // Collect garbage pseudo-randomly - if (DateTime.Now.Second % 10 == 0) - CollectGarbage (); + // Collect garbage pseudo-randomly. Turn off for + // now: too resource heavy. + // if (DateTime.Now.Second % 10 == 0) + // CollectGarbage (); }