On Sat, 26 Jan 2008, Marko Kreen wrote:If it's internal, it's much better, but you still missed the performance angle. The fact is, hashing can take shortcuts that folding cannot do! Case folding, by definition, has to be "exact" (since the whole point is what you're going to use the same folding function to do the compare, so if you play games with folding, the compares will be wrong). But hashing doesn't have to be exact. It's ok to hash '{' and '[' as if they were different cases of the same character, if that gives you a faster hash function. Especially as those charactes are rather rare in filenames. So if you do hashing as a function of its own, you can simply do a better job at it. I do agree that the functions that create a folded set of characters from a _complex_ UTF-8 character should be shared between folding and hashing, since that code is too complex and there are no simple shortcuts for doing a faster hash that still retains all the properties we want. Linus - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Arjan van de Ven | [patch] Add basic sanity checks to the syscall execution patch |
| Roland McGrath | Re: Linus 2.6.23-rc1 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| Paul Mackerras | New features in gitk |
| Dmitry Potapov | [RFC] Single system account for multiple git users |
| Robert Schiele | [PATCH] change Perl syntax to support Perl 5.6 |
| Stephan Beyer | git sequencer prototype |
| Jacob Meuser | Re: Real men don't attack straw men |
| Frank Bax | RTL8185 wireless support? |
| mufurcz | panic: aml_die aml_setbufinit:988 (acpi?) |
| GVG GVG | OpenSSL Certificate Authority Setup |
| Jeff Garzik | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| Scott Wood | [PATCH 0/9] fs enet and mdio bitbang patches |
| Alan Swanson | IPSEC IPV4 Tunnel Requires IPV6 WIth 2.6.25? |
| Леонид Юрьев | [r8169] patch for RTL8102 (5 new MAC/PHY) |
