|
|
|
|
|
by jra_samba
2114 days ago
|
|
Yep, that's true. It's the cache misses that kill performance. If the client asks for file "Foo", and the (l)stat fails to find it, then we have to scan the whole directory looking for any case-differing versions of "foo" "FOO" "fOo" etc. Very costly, but the only way to give case-insensitivity. |
|
That is very costly — but it's certainly not the only way to provide case-insensitivity, nor is it the recommended way, and I'd be surprised if any implementation of case-insensitivity actually did what you say.
Normally one would lowercase (or uppercase) both strings, and then do the comparison.
The complexity here usually comes when case-folding various tricky locales.