Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_misc.c 


Log Message:
- Set the realize processing flag before calling the realize callback and
  unset it afterwards. This gives a pretty good speed boost when rendering 
  a lot of things. 

  eg rendering > 10,000 widgets went from ~5 seconds to ~2 seconds.

(Dtrace to the rescue.)

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_misc.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -3 -r1.39 -r1.40
--- ewl_misc.c  15 Jan 2006 05:43:41 -0000      1.39
+++ ewl_misc.c  27 Jan 2006 05:24:40 -0000      1.40
@@ -821,7 +821,9 @@
        ecore_list_goto_first(realize_list);
        while ((w = ecore_list_remove_first(realize_list))) {
                if (VISIBLE(w) && !REALIZED(w)) {
+                       ewl_object_queued_add(w, EWL_FLAG_QUEUED_RPROCESS);
                        ewl_widget_realize(EWL_WIDGET(w));
+                       ewl_object_queued_remove(w, EWL_FLAG_QUEUED_RPROCESS);
                        ecore_list_prepend(child_add_list, w);
                }
        }




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to