From d492fcdbfb2268458b717be09acfaefb843c93bb Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Wed, 7 Aug 2019 17:56:39 -0300 Subject: [PATCH] removing gc call --- README.md | 2 +- fpakman/util/memory.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index e5edc104..11eb8d57 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ You can change some application settings via environment variables or arguments - **FPAKMAN_SNAP**: enables / disables snap usage. Use **0** (disable) or **1** (enabled, default) - **FPAKMAN_CHECK_PACKAGING_ONCE**: If the available supported packaging types should be checked ONLY once. It improves the application speed if enabled, but can generate errors if you uninstall any packaging technology while using it, and every time a supported packaging type is installed it will only be available after a restart. Use **0** (disable, default) or **1** (enable). - **FPAKMAN_TRAY**: If the tray icon and update-check daemon should be created. Use **0** (disable) or **1** (enable, default). -- **FPAKMAN_SUGGESTIONS**: If application suggestions should be displayed if no app is installed (runtimes do not count as apps). Use **0** (disable) or **1** (enable, default). +- **FPAKMAN_SUGGESTIONS**: If application suggestions should be displayed if no app are installed (runtimes do not count as apps). Use **0** (disable) or **1** (enable, default). ### How to improve the application performance - If you don't care about a specific packaging technology and don't want **fpakman** to deal with it, just disable it via the specific argument or environment variable. For instance, if I don't care diff --git a/fpakman/util/memory.py b/fpakman/util/memory.py index 35ec2659..12f65911 100644 --- a/fpakman/util/memory.py +++ b/fpakman/util/memory.py @@ -3,7 +3,6 @@ from threading import Thread from typing import List from fpakman.util.cache import Cache -import gc class CacheCleaner(Thread): @@ -20,6 +19,5 @@ class CacheCleaner(Thread): for cache in self.caches: cache.clean_expired() - gc.collect() time.sleep(self.check_interval)