Re: stat64() calls of files in underlaying directories?
John Ellis <[email protected]> Tue, 12 Jul 2005 12:44:31 -0400
| Newsgroups | gmane.comp.gnome.apps.gqview.user |
|---|---|
| Message-ID | <[email protected]> |
Guus Houtzager wrote: > > What happens is if I'm looking at /pictures/holiday/2004 and switch > to /pictures/holiday/2005 gqview starts doing stat64() calls (confirmed > with strace -p on the process) on all files in /pictures. That takes > more than a minute and is very annoying to say the least and happens on > every directory switch. > Any idea why gqview is doing this? More information available on > request. When selecting a new folder, the folder tree view will update it's contents along the complete path to the new location - regardless if the time stamps for those folders have changed. If you have time and/or install GQview from source the attached patch may help. If the patch fixes this issue please indicate this so that I can include the patch in the next release. (If this does not apply because you do not use the folder tree view, then something is definitely broken in GQview and I will need more information about your GQview config [~/.gqview/gqviewrc] ) Greetings, John -- John Ellis <[email protected]> http://gqview.sourceforge.net <GQview> | http://hideseek.sourceforge.net http://gqmpeg.sourceforge.net <GQmpeg> | <Preferences Hide and Seek>
gqview-remove-tree-update-force.patch
(text/plain, 515 B)
Index: view_dir_tree.c =================================================================== RCS file: /devel/cvs/gqview/src/view_dir_tree.c,v retrieving revision 1.28 diff -u -r1.28 view_dir_tree.c --- view_dir_tree.c 18 May 2005 23:40:16 -0000 1.28 +++ view_dir_tree.c 12 Jul 2005 16:33:01 -0000 @@ -1292,7 +1292,7 @@ g_free(vdt->path); vdt->path = g_strdup(path); - fd = vdtree_populate_path(vdt, vdt->path, TRUE, TRUE); + fd = vdtree_populate_path(vdt, vdt->path, TRUE, FALSE); if (!fd) return FALSE;