Don't do file-read progress bar updates with a timeout; instead, update
authorGuy Harris <guy@alum.mit.edu>
Sat, 28 Aug 1999 01:51:58 +0000 (01:51 -0000)
committerGuy Harris <guy@alum.mit.edu>
Sat, 28 Aug 1999 01:51:58 +0000 (01:51 -0000)
commitbb6a82004e0bb8eb4cb40343449039e3d16506f4
treec8ce02be17aeeb7681b52917c20befffe4fdd8c4
parentae53260d0213cb805bcd84ee13045dd1f8a42e9c
Don't do file-read progress bar updates with a timeout; instead, update
the progress bar up to 100 times, as we get another percent closer to
completion.  That reduces the number of times we run the GTK+ main loop;
that main loop may do a "select()" or "poll()" or FIONREAD "ioctl" to
check for input from the X server, adding to the CPU overhead of reading
a file.

The packet filtering progress bar is already updated in a similar
fashion; make it also do up to 100 updates.

svn path=/trunk/; revision=597
ethereal.c
ethereal.h
file.c
file.h