From 3f4b2a65bf1db900abcf22bcc2321a9f1b58f369 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Mon, 18 Sep 2006 09:47:34 +0000 Subject: [PATCH] tune the unloads to be conservative but effective. SVN revision: 25955 --- legacy/evas/src/lib/file/evas_module.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/legacy/evas/src/lib/file/evas_module.c b/legacy/evas/src/lib/file/evas_module.c index d80d5511a6..b111319af1 100644 --- a/legacy/evas/src/lib/file/evas_module.c +++ b/legacy/evas/src/lib/file/evas_module.c @@ -314,9 +314,9 @@ evas_module_clean(void) Evas_List *l; Evas_Module *em; - /* only clean modules every 32 calls */ + /* only clean modules every 256 calls */ call_count++; - if (call_count <= 32) return; + if (call_count <= 256) return; call_count = 0; if (noclean == -1) @@ -345,7 +345,7 @@ evas_module_clean(void) ago = use_count - em->last_used; if (em->last_used > use_count) ago += 0x10000000; /* if it was used last more than N clean cycles ago - unload */ - if (ago > 3) + if (ago > 5) { // printf(" UNLOAD %s\n", em->name); evas_module_unload(em);