<div dir="ltr">.msi files (application/x-msi, subclass of application/x-ole-storage) do not have any content match. I get the feeling the issue might be deeper, eg. an overzealous thumbnailer.</div><div class="gmail_extra">

<br clear="all"><div>J. Leclanche</div>
<br><br><div class="gmail_quote">On Mon, Jan 21, 2013 at 6:32 PM, Kevin Krammer <span dir="ltr"><<a href="mailto:krammer@kde.org" target="_blank">krammer@kde.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

On Saturday, 2013-01-19, westlake wrote:<br>
> Actually this does not occur at all with lynx or mc<br>
<br>
console interfaces don't have the same requirements, e.g. they usually don't<br>
have to retrieve the same amount of meta data.<br>
GUI file managers nowadays are required to show different icons depending on<br>
the file's MIME type, I doubt mc needs to know the MIME type at all.<br>
<br>
> So far as any file navigator knows.. these are just local files..<br>
> (I'm not using webdav/ssl via dbus/gvfs -- but have the mountpoint under<br>
> /etc/fstab as webdavfs)<br>
<br>
Which is of course part of the problem, since local files are assumed to be<br>
random, high througput and low latency access.<br>
Remote file access systems which have been developed with the requirements of<br>
GUI programs in mind provide a way for applications to check if a file can be<br>
considered local for optimization, but keep it aware of potential I/O bounds<br>
if it can not.<br>
<br>
> I also tried to narrowed it down, and did long ago what you may suspect<br>
> is the problem. But it only occurs with anything that uses mimelists..<br>
> -- So I disable any thumbnail checking.<br>
><br>
> I guess I would be able to address this on another mailing list.. since<br>
> it doesn't seem anybody really understands this problem I'm having..<br>
><br>
> I would of thought too that it's the file managers.  But this happens<br>
> with 5 GUI file managers.. and not at all for any of the cli file<br>
> navigators.<br>
<br>
Which would be a good indication that the GUI file managers do something they<br>
CLI file manager don't.<br>
<br>
Since you describe the problem occuring with files that have binary patterns<br>
defined for MIME type detection.<br>
Do the respective file extensions have multiple file type associations?<br>
Or the other way around: is the file extension unqiue?<br>
<br>
If it is not unique, e.g. the same extension being associated with two<br>
different file types, then file managers would need to look deeper, e.g.<br>
content inspection. And since the file is considered local, that is OK and<br>
considered very fast (loading of a handful of bytes).<br>
<br>
> (Another thing, is if I use a Web browser with file:// as part of the<br>
> URL, the directory lists is always quick)<br>
<br>
My guess on this data point is that as soon as file managers are aware they<br>
are not dealing with a local file they don't consider content inspection a<br>
viable option during listing.<br>
<br>
> and I disable any thumbnail checking  --<< It ONLY occurs with .msi/.msu<br>
> files.. and a <match> rule is seldomly ever used... so it definitely has<br>
> something to do with the freedeskto project..  << BUT.. it does not<br>
> occur on a "local" storage..<br>
<div class="im">><br>
> So if I had these problematic filetypes (.msi/.msu) in ~ , I get no<br>
> long-long long delay..<br>
<br>
</div>Probably orders of magnitude faster medium, no?<br>
<div class="im"><br>
>   ^ I tested it.. thumbnails off. A long list of files.. I then add just<br>
> "one" problematic .msi file and it nearly stalls the listing completely<br>
> (2+ minute delay) -- just because of ONE file.<br>
<br>
</div>Does this also happen if you have fetched the file already? E.g. by cat'ing it<br>
to /dev/null?<br>
I.e. so that any further access is likely to be answered from kernel I/O<br>
buffers?<br>
<br>
Cheers,<br>
Kevin<br>
<span class="HOEnZb"><font color="#888888">--<br>
Kevin Krammer, KDE developer, xdg-utils developer<br>
KDE user support, developer mentoring<br>
</font></span><br>_______________________________________________<br>
xdg mailing list<br>
<a href="mailto:xdg@lists.freedesktop.org">xdg@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/xdg" target="_blank">http://lists.freedesktop.org/mailman/listinfo/xdg</a><br>
<br></blockquote></div><br></div>