[Thunar-dev] thunar speed
Benedikt Meurer
benedikt.meurer at unix-ag.uni-siegen.de
Fri Mar 17 23:26:09 CET 2006
Erik Harrison wrote:
>>>I noticed the same thing.
>>>Opening my /usr/bin directory which contains about 2128 files took
>>>thunar about 20 seconds. Rox opened it in 3 seconds.
>>>
>>>Odd...
>>
>>For /usr/bin, that's the expected behaviour, and easy to explain. ROX
>>doesn't do magic lookups on the MIME database, while Thunar follows the
>>MIME spec (with one small exception) and does the magic lookup if none
>>of the glob patterns match.
>
> Possible optimization Benny, I haven't thought this through to it's
> extreme yet, but.... could you possibly skip magic lookup on files
> with the exec bit set? Noting the way that Windows works, it's highly
> rare to have a file with non extension (you have to fight to get an
> app to not auto add an extension), and except in the case of limited
> filesystems should the x bit be a pretty clear indicator that the file
> is an application?
That way it's impossible to distinguish a shell script from an ELF
binary, and you would not be able to open shell scripts (and perl
scripts, etc.) in a text editor.
Benedikt
More information about the Thunar-dev
mailing list