Enlightenment CVS committal
Author : onefang
Project : e17
Module : apps/e_utils
Dir : e17/apps/e_utils/src/bin/e17genmenu/src/bin
Modified Files:
main.c parse.c
Log Message:
Constantly regenerating the eap caches each time we add an eap soaks up a
lot of time if there are plenty of eaps being added. I only commented them
out in case devilhorns wants to put them back. The eap caches are all
regenerated at the end, AND the wm hangs for a short period after we stop
running, probably doing it's own cache regen. raster was having thoughts
about this...
===================================================================
RCS file:
/cvsroot/enlightenment/e17/apps/e_utils/src/bin/e17genmenu/src/bin/main.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -3 -r1.25 -r1.26
--- main.c 19 Feb 2006 08:29:04 -0000 1.25
+++ main.c 19 Feb 2006 08:59:40 -0000 1.26
@@ -255,12 +255,17 @@
sort_menus();
/* Update E Cache */
+ begin = ecore_time_get();
#ifdef DEBUG
- fprintf(stderr, "Regenerating Eapp Cache...\n");
+ fprintf(stderr, "Regenerating Eapp Caches...\n");
#endif
snprintf(path, sizeof(path), "enlightenment_eapp_cache_gen %s" EAPPDIR "
-r",
get_home());
system(path);
+ snprintf(path, sizeof(path), "enlightenment_eapp_cache_gen
%s/.e/e/applications/favorite -r",
+ get_home());
+ system(path);
+ cache_time += ecore_time_get() - begin;
printf("\nTotal time %3.3f seconds, finding fdo paths %3.3f, converting fdo
menus %3.3f, generating %d eaps in %d menus %3.3f, finding icons %3.3f,
generating eap caches %3.3f.\n",
ecore_time_get() - start, paths, convert, item_count, menu_count, gen
- (icon_time + cache_time), icon_time, cache_time);
===================================================================
RCS file:
/cvsroot/enlightenment/e17/apps/e_utils/src/bin/e17genmenu/src/bin/parse.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- parse.c 19 Feb 2006 08:29:04 -0000 1.14
+++ parse.c 19 Feb 2006 08:59:40 -0000 1.15
@@ -284,22 +284,26 @@
if (window_class != NULL)
write_eap(path, "app/window/class", window_class);
+/* Disable the constant cache regens for now, they take up the bulk of the
time.
begin = ecore_time_get();
snprintf(buffer, sizeof(buffer),
"enlightenment_eapp_cache_gen %s/.e/e/applications/all -r >
/dev/null 2>&1",
getenv("HOME"));
system(buffer);
cache_time += ecore_time_get() - begin;
+*/
category = NULL;
if (menu_path != NULL)
{
+/* Disable the constant cache regens for now, they take up the bulk of the
time.
begin = ecore_time_get();
snprintf(buffer, sizeof(buffer),
"enlightenment_eapp_cache_gen
%s/.e/e/applications/favorite/%s -r /dev/null 2>&1",
getenv("HOME"), menu_path);
system(buffer);
cache_time += ecore_time_get() - begin;
+*/
snprintf(order_path, sizeof(order_path), "%s" EFAVDIR "/%s", home,
menu_path);
modify_order(order_path, eap->eap_name);
@@ -309,12 +313,14 @@
category = find_category(eap->categories);
if (category != NULL)
{
+/* Disable the constant cache regens for now, they take up the bulk of the
time.
begin = ecore_time_get();
snprintf(buffer, sizeof(buffer),
"enlightenment_eapp_cache_gen
%s/.e/e/applications/favorite/%s -r /dev/null 2>&1",
getenv("HOME"), category);
system(buffer);
cache_time += ecore_time_get() - begin;
+*/
snprintf(order_path, sizeof(order_path), "%s" EFAVDIR "/%s", home,
category);
modify_order(order_path, eap->eap_name);
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs