Permalink
Browse files

trivial: Tweak memory management a bit more

We can release indices faster to free memory.
  • Loading branch information...
1 parent e76e480 commit dd87662d7f3dbdfe2dafaad0fcd2223be7a72bd9 @ximion committed Sep 17, 2016
Showing with 2 additions and 3 deletions.
  1. +2 −3 source/engine.d
View
@@ -503,9 +503,6 @@ public:
// log progress
logInfo ("Completed processing of %s/%s [%s]", suite.name, section, arch);
-
- // free memory
- gcCollect ();
}
// write reports & statistics and render HTML, if that option is selected
@@ -519,11 +516,13 @@ public:
// that we can (mostly) free now - on some machines, the GC runs too late,
// making the system run out of memory, which ultimately gets us OOM-killed.
// we don't like that, and give the GC a hint to do the right thing.
+ pkgIndex.release ();
gcCollect ();
}
// free some memory
pkgIndex.release ();
+ gcCollect ();
// render index pages & statistics
reportgen.updateIndexPages ();

0 comments on commit dd87662

Please sign in to comment.