Stream: git-wasmtime

Topic: wasmtime / Issue #235 Allow colons in Windows host paths


view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2020 at 01:02):

indolering commented on Issue #235:

@programmerjake @sunfishcode

Note that the runtime behavior of checking for case-folded filenames is not O(n^chars), it is O(files) or O(log files): you just convert all of the filenames in a directory to a canonical case-folded name (toCasefold(NFC(filename))) before you compare. This is known as caseless matching in Unicode parlance, which is fast and vectorizable.

Wine and Samba run into issues with deeply nested directories: /foo/bar/readme.txt, /Foo/bar/readme.txt. But that's because they are providing a compatibility layer for unmodified binaries. In our case, we could just throw an error when there are multiple casefolded matches.


Last updated: Oct 23 2024 at 20:03 UTC