Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/file


Modified Files:
        evas_module.c 


Log Message:


tune the unloads to be conservative but effective.

===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/file/evas_module.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- evas_module.c       18 Sep 2006 09:40:29 -0000      1.19
+++ evas_module.c       18 Sep 2006 09:47:34 -0000      1.20
@@ -314,9 +314,9 @@
    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 @@
        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);



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to