Hi Vincent!

I have added the line you suggested and looked at times.
Lines that take too long to be processed are the lines without icon
specification. I look through the code and find that array "icons" is
filled with all system icons (take 2 seconds) and then this array is
searched for icon with application's shortcommand in its name. And this
searching is probably what makes things slow. Lines without icon
specification take 0.3s, lines with icon specification take avarage
0.0007s.

I have probably too much icons installed and too much menu entries with
no icon specified.

SYSTEM_ICONDIRS = [ "/usr/share/pixmaps", "/usr/share/icons" ]

$ find /usr/share/pixmaps /usr/share/icons -name '*.png' -o -name
'*.xpm' | wc -l
60815

Thanks,
Petr.



Vincent Bernat píše v Ne 12. 04. 2009 v 13:54 +0200:
> OoO  En ce  début de  soirée du  mardi 24  mars 2009,  vers  21:40, Petr
> Gajdůšek <gajdusek.p...@centrum.cz> disait :
> 
> >> Since it  takes so  much time,  I suppose that  most of  the time  is
> >> in
> >> Python code. How many lines do you have in fvwm-crystal.debian-menu?
> 
> > 1595 
> 
> Hi Petr!
> 
> This seems  OK for me.  Could you please  add the following  line before
> "#Translate dangerous characters":
> 
> print >>sys.stderr, title, needs, command, section, icon
> 
> This  way, we  could see  if there  are some  line that  take  longer to
> process than others.




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to