Subject: FVWM: Slow reading of Menus with mini icons

From: [email-masked]
Date: Wed, 6 Dec 1995 13:11:12 +0100 (MET)

Hi, y'all!

I have been using fvwm 2.0.38/39 for quite a while without any
problems on my SGI Indigo w/ IRIX 5.3 now.

Yesterday I decided to add mini icons to my menus.  When I reread
the menu definitions after doing all my changes I had to wait
forever (>15 seconds) until they were read in.  Withouth the
mini icons it never took longer than 2-3 seconds.

Of course it's taking just as long when I first log in or when
I restart fvwm.

Is this 'normal', i.e. does it have to take so long to read in
a few mini icons?  I wonder why nobody else has complained about
this before.  Could it be that it's happening just for me?

Maybe I am doing something wrong, though.  There are quite a few
colors in those mini icons.  Could that be slowing it down?

For benchmarking I took out the following menu, and read it in
separetly:

DestroyMenu Pictures
AddToMenu Pictures	"Pictures"		Title
+  "%mini.speedlimit.xpm%Speedlimit"	XV_Back_Sp 6 more/speedlimit.large.jpg
+  "%mini.heidi.xpm%Heidi"		XV_Back_Sp 1 more/heidi2.jpg
+  "%mini.andy.xpm%Andy"		XV_Back_Sp 1 more/andy1.gif
+  "%mini.h_a.xpm%H+A"			XV_Back_Sp 1 more/xmas.jpg
+  "%mini.bart.xpm%Bartl"		XV_Back_Sp 4 more/Cartoon/bart.icon
+  "%mini.garfield1.xpm%Garfield"	XV_Back_Sp 4 more/Cartoon/garfield.gif
+  "%mini.garfield2.xpm%Garfield (emboss)"	XV_Back_Sp 4 more/Cartoon/garfield.emb.gif
+  "%mini.hamster.xpm%Hamster (emboss)"	XV_Back_Sp 4 more/Cartoon/hamster.emboss.small.gif
#+  "%mini.ottifant.xpm%Ottifant"	XV_Back_Sp 4 more/Cartoon/ottif.gif
+  ""			Nop
+  "%mini.fine_grid.xpm%Fine Grid"	XSETROOT_b /usr/include/X11/bitmaps/grid2
+  "%mini.coarse_grid.xpm%Coarse Grid"	XSETROOT_b /usr/include/X11/bitmaps/grid8
+  ""			Nop
+  "%mini.granite.xpm%Granite"		XSETROOT_b /usr/include/X11/bitmaps/granite -bg grey50 -fg grey15"
+  "%mini.gray_wall.xpm%Gray wall"	XV_Back_Sp 4 WWW/back/rock_gray2.gif
+  "%mini.white_wall.xpm%White wall"	XV_Back_Sp 4 WWW/back/white.wall.gif
+  "%mini.no_dos.xpm%No Dos!"		XV_Back_Sp 4 WWW/no_dos.gif
+  "%mini.escher.xpm%Escher"		XSETROOT_b /usr/include/X11/bitmaps/escherknot -bg "sgi slate blue" -fg Blue4

Those macros are defined elsewhere:
############################ Some Macros #################################
AddToFunc XV_Back "I" exec xv_3 -root -rmode $0 -quit -noresetroot $1
AddToFunc XV_Back_Sp "I" exec xv_3 -root -rmode $0 -quit -noresetroot /home/spiegl/pic/$1
AddToFunc XSETROOT_s "I" exec xsetroot -solid $0
AddToFunc XSETROOT_b "I" exec xsetroot -bitmap $0 $1 $2 $3 $4 $5 $6 $7 $8

I found that it takes about 5 seconds to read and process
those lines.

Please comment!

Bye,
 Andy.

PS: Ceterum censeo:  Cheers to Rob, Chuck and all other contributors!
___________________________________________________________________________
  Andy Spiegl, Institute for Applied Mathematics
  University of Technology, Muenchen, Germany
  E-Mail: [email-masked]
  http://www.appl-math.tu-muenchen.de/~spiegl/

Above all else - sky.

--
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to [email-masked].
To report problems, send mail to [email-masked].