[Thunar-workers] [DokuWiki] page changed: implementation:mime-glob-match

thunar-workers at xfce.org thunar-workers at xfce.org
Mon Mar 7 02:07:22 CET 2005


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2005/03/07 01:07
Browser     : Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050122 Firefox/1.0
IP-Address  : 217.229.249.18
Hostname    : pD9E5F912.dip.t-dialin.net
Old Revision: http://thunar.xfce.org/wiki/implementation:mime-glob-match?rev=1110155526
New Revision: http://thunar.xfce.org/wiki/implementation:mime-glob-match
Edit Summary: 
User        : benny

@@ -4,9 +4,8 @@
  specification]] as closely as possible (unlike other projects)
  to make sure the user will be presented with usable results (although the
  user won't know where these results come from, since the MIME System will
  be hidden from the UI).
- 
  
  ===== Ideas for the new Implementation =====
  The implementation should be very fast, since the MIME type detection is
  done on every single file, that is touched by the file manager (and can
@@ -14,8 +13,22 @@
  
  An [[implementation:mime-glob-match-analysis|analysis]] of the ''globs'' file
  in the Shared MIME Database is was done to better understand the requirements
  for the MIME globbing implementation.
+ 
+ Another important point to consider while designing/optimizing the Pattern
+ Matching algorithm is the average filename length. For example, in case of
+ my home folder (on my workstation at home), the average length of filenames
+ is 12-13 characters. I may not be very representative for the average user,
+ so you may want to repeat this simple test on your home desktop and send your
+ results to [[benny at xfce.org]] to help us. Just run the simple shell code below
+ (be aware that this can take some time, dependending on the number of files
+ in your home directory).
+ 
+ <code bash>
+ find $HOME -exec basename '{}' ';' | \
+  awk '{total += length($0); count += 1} END {print total / count}'
+ </code>
  
  ==== Steps ====
  The required steps for the Glob Match detection are as follows
  



-- 
This mail was generated by DokuWiki at
http://thunar.xfce.org/wiki/



More information about the Thunar-workers mailing list