Re: [PATCH] Add more nautilus_file..._nocopy variants



On Tue, 2005-12-06 at 18:27 -0600, Federico Mena Quintero wrote:
> On Tue, 2005-12-06 at 10:45 +0100, Alexander Larsson wrote:
> 
> > Yeah, this is the right approach, measure first, then fix. Of course,
> > having spent a few years doing this I know its not as simple as you'd
> > think. :)
> 
> Yeah, I can imagine.
> 
> Do you know if the descriptions under nautilus/docs are up to date?  I'd
> love to see a diagram or something about the multiple layers of
> asynchronicity.

The i/o descriptions are basically up to date. Anything describing view
selections and such are a bit outdated since we removed bonobo, but not
totally useless (things are still similar).

> > What are you trying to optimize? New window speed? Cold-cache case or
> > hot-cache case? Have-to-sniff case like /usr/bin or an easier case where
> > all files have extensions?
> 
> New window speed ("double click a folder icon"), hot cache for now.  We
> can't comfortably test the cold cache case until the kernel gives us a
> good way to wipe the buffer cache.
> 
> /usr/bin is a stupidity in xdg-mime, I think - it should have heuristics
> like the old MC had for files without extensions:  if a file is +x and
> has no extension, it's an executable, period.  We can probably have a
> flag to say "but it is ambiguous", and do a sniff in really-low-priority
> stage.

I just took /usr/bin as an example where no file matches extensions so
we have to sniff. This can happen in other cases too. 

A simple +x detector would be pretty busted, as it wouldn't be able to
give you different mimetypes for different types of executables (perl
code, bash script, python code, etc). This would break e.g. gedits
syntax highlighting mode, and generally regress in functionallity.

Here is a bit more info about how mime detection works in nautilus:
http://lists.freedesktop.org/archives/xdg/2005-November/007559.html

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's an immortal gay cyborg on a search for his missing sister. She's a 
pregnant blonde fairy princess living homeless in New York's sewers. They 
fight crime! 




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