GNOME Bugzilla – Bug 323348
Load db in a thread
Last modified: 2006-01-21 01:55:50 UTC
Rhythmbox takes a while to show the window after it is started, because it will not do so until the DB in loaded. If we loaded the db in a thread, Rhythmbox would appear to start faster.
Created attachment 55672 [details] [review] patch Patch to do this, and makes rhythmb_commit safe to call from another thread.
Created attachment 57391 [details] [review] updated patch Updated to cvs, and with a couple of minor fixes/improvements.
This achieves roughly the same effect as my patch in bug #325215, with much less hassle. I think this is the better approach, but we could still do better. With a cold disk cache, there's still a period of 5-10 seconds where rhythmbox is unresponsive.
Created attachment 57528 [details] [review] updated patch For me that delay was mostly being caused by the library-monitoring starting immediately, when RB is still busy loading the db and doing stats. This version of the patch causes it to start 10 seconds later. For me, RB's UI is semi-responsive in 2 seconds, and completely loaded in 6.
WORKSFORME. Nice to have the UI loaded almost immediately then the loading of new files a bit later.
Committed to cvs. Some of the stuff from bug 325215, or other bugs may still be useful (I haven't checked yet).