Re: [Rhythmbox-devel] State Of The Rhythmbox (3)
- From: Joshua Haberman <joshua haberman com>
- To: rhythmbox-devel gnome org
- Subject: Re: [Rhythmbox-devel] State Of The Rhythmbox (3)
- Date: 08 Sep 2003 21:27:09 -0700
Thanks for the answers. I'm still a bit lost in the details and my
unfamiliarity with GTK+, but I feel like your latest plan is more in the
right direction. It still seems a bit thread-happy to me. Something
that you might consider is: can you consolidate some of the threads?
For example, I think all the disk functionality:
* reading the XML file from disk
* walking filesystem trees that are added to the library
* monitoring the filesystem for changes
could live in the same thread, a thread that looks something like
(extremely pseudo code in a C++ style since I am not familiar with GTK):
filesystem_request = filesystem_request_queue->pop();
Perhaps you know reasons why this kind of consolidation is not possible.
I'm not sure if FAM is standard enough for Gnome programs to use, but if
so it would be a vastly better mechanism for watching the filesystem
than just stat()int the whole library constantly.
One other suggestion I have is to have a search thread always running
instead of spawning one every time the user initiates a search. This
sidesteps the problems of making sure these search threads do not become
] [Thread Prev