Re: possible optimization



On Fri, 2006-02-24 at 15:34 +0100, Luca Ferretti wrote:
> Il giorno ven, 24/02/2006 alle 10.30 +0100, Alexander Larsson ha
> scritto:
> > I just realised that when calculating the "size" calculation for folders
> > (the number of items in the folder) we're currently getting all
> > information from the files in that folder (i.e. a stat call per file)
> > when we only really need the filenames.
> 
> Do you think Nautilus can follow a similar path when you are using the
> simple icon view (just filename as icon caption)? Here you need only
> filenames...

No, you always need the file type. (Both of the file/folder/symlink
variety and the mime type variety.)

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's an all-American Catholic cyborg on the run. She's a cynical streetsmart 
widow fleeing from a Satanic cult. They fight crime! 




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