Re: Patch: fix 100% cpu when mime-info files are updated



Le mar 02/09/2003 à 11:34, Murray Cumming a écrit :
> On Tue, 2003-09-02 at 11:00, Frederic Crozat wrote:
> > The following patch fixes 100% cpu usage in nautilus (and probably other
> > apps) when mime-info files are modified. To trigger it, simply run
> > "touch /usr/share/mime-info/*" and see nautilus (and maybe your desktop)
> > frozen for a long time :)) This bug has been here since GNOME 2.2 :((
> 
> So why does it feel urgent now? For how long has this patch existed and
> been tested?

Initial fix was done on Friday (thanks to Alex help) but with suggestion
from Alex, I fixed it this morning.. 

I got review for Alex who understand gnome-vfs better than I do..

In fact, the fix is quite trivial : instead of sending a bunch of update
event when mime-type are modified (usually when packages are
installed/removed), we wait a little and only send one update
notification..
-- 
Frederic Crozat <fcrozat mandrakesoft com>
Mandrakesoft




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]