Bug#252148: zenity is S L O W
Ross Burton
Ross Burton <ross@burtonini.com>, 252148@bugs.debian.org
Tue, 01 Jun 2004 20:10:13 +0100
On Tue, 2004-06-01 at 17:40, giacomo boffi wrote:
> please look at the attached little benchmark, you can see that
> instantiating a zenity dialog takes MORE than 10 times the cpu needed
> to load xemacs, execute its startup files, to instantiate a fully
> decorated (menus, toolbars, pixmaps) frame and to close it, and what's
> more important, it takes more than FIVE seconds of wall clock
For me that code results in the Zenity dialog appearing instantly. Note
that the duration that time will return includes the amount of time you
take to actually press the dialog, so does not represent a sensible
benchmark.
$ echo $LISTA
FALSE ctwm FALSE gwm FALSE ion2 FALSE metacity FALSE pwm2 FALSE vtwm
TRUE twm
$ time zenity --height=330 --list --radiolist --column Run --column
window\ manager $LISTA
twm
real 0m0.596s
user 0m0.193s
sys 0m0.029s
Of course, leaving the dialog a few seconds before hitting return gives:
$ time zenity --height=330 --list --radiolist --column Run --column
window\ manager $LISTA
twm
real 0m6.706s
user 0m0.179s
sys 0m0.034s
It's probably a good idea to run strace zenity... 2>log and attach the
log, so we can see if there is something weird going on with your
system.
Ross
--
Ross Burton mail: ross@burtonini.com
jabber: ross@burtonini.com
www: http://www.burtonini.com./
PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF