On pá 10. dubna 2009, Klaus Ethgen wrote: > Hi, > > Am Fr den 10. Apr 2009 um 15:55 schrieb Vladimir Nadvornik: > > > I encountered a other situation where it comes into trouble. When you > > > open a collection (that can be from many files from many directories) > > > then the stat probe is still done. Do you have a idea how to improve > > > that? > > > > Other possibility is to read complete directory even if the collection > > contains just one file from it. > > That would be cheaper. That just needs one read of the directory once > for each file (without other optimisation) instead of 216 reads followed > by 216 stats of mostly not existing files. (The read of the directory > will be done by the os just before the stat.) So this would improve the > performance by ~200. >
Is it really so slow? AFAIK most of distributions use ext3 with dir_index option and my (very limited) testing on this filesystem showed that stat speed is comparable to hash table lookup. Vladimir ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Geeqie-devel mailing list Geeqie-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geeqie-devel