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

thunar-workers at xfce.org thunar-workers at xfce.org
Sun Feb 20 00:20:10 CET 2005


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

Date        : 2005/02/19 23:20
Browser     : Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050122 Firefox/1.0
IP-Address  : 217.85.191.78
Hostname    : pD955BF4E.dip.t-dialin.net
Old Revision: http://thunar.xfce.org/wiki/implementation:mime-glob-match?rev=1108854633
New Revision: http://thunar.xfce.org/wiki/implementation:mime-glob-match
Edit Summary: 
User        : benny

@@ -102,8 +102,10 @@
  default on 32bit BSDs already; Glibc?). To further speed up things,
  the implementation can use prefetching for CPUs that support it. The
  size of buf should probably be detected at configure time somehow,
  so other architectures can benefit from this optimization as well.
+ For the ia32 case, we can optimize this further using SSE/SSE2 (if
+ available) to load and compare the stuff very fast.
  
  As an explanation for the struct: ''length'' includes the length
  of the literal in bytes, and ''type'' is a pointer to the MIME-type
  which is located in the hashtable somewhere in the ''ThunarMimeDatabase''.
@@ -129,9 +131,9 @@
  The above optimizations should do the job, especially, since - as
  mentioned already - the literal pattern is not the common case.
  
  Open issues:
-   * What about **case-insensitive** comparisons!? (We could use a 2nd list with the same basic structure as described above here, where all items are lower-cased properly - again, remember UTF-8!)
+   * What about **case-insensitive** comparisons!? (We could use a 2nd list with the same basic structure as described above here, where all items are lower-cased properly - again, remember UTF-8 - we'd two lists, but only one function!)
  
  
  
  === Simple Patterns ===



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



More information about the Thunar-workers mailing list