[f-spot] Force GC collections during import.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Force GC collections during import.
- Date: Sun, 16 May 2010 10:33:15 +0000 (UTC)
commit 8e017e96bb48e026f3db7daaac10ca55f92c35a0
Author: Ruben Vermeersch <ruben savanne be>
Date: Sun May 16 12:02:27 2010 +0200
Force GC collections during import.
src/ImportCommand.cs | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/ImportCommand.cs b/src/ImportCommand.cs
index e503fee..06b3710 100644
--- a/src/ImportCommand.cs
+++ b/src/ImportCommand.cs
@@ -404,6 +404,9 @@ public class ImportCommand : GladeDialog
return false;
}
+ if (status_info.Count > 0 && status_info.Count % 25 == 0)
+ System.GC.Collect ();
+
if (status_info.Count < total)
UpdateProgressBar (status_info.Count + 1, total);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]