minor memory optimizations
there are memory leaks in the code but I can't find where.
This commit is contained in:
parent
0afc9e05ba
commit
3438370544
@ -159,7 +159,10 @@ public class Hypervisor {
|
||||
for (;;) {
|
||||
for (RedditPost post : myRedditExtractor.getRedditPosts()) {
|
||||
computeRedditPost(post);
|
||||
post = null;
|
||||
}
|
||||
System.out.println("[*] Cleaning memory.");
|
||||
System.gc();
|
||||
System.out.println(
|
||||
"[*] Hypervisor is waiting for " + this.delay + " seconds.");
|
||||
Thread.sleep(this.delay * 1000);
|
||||
|
Loading…
Reference in New Issue
Block a user