[SG16-Unicode] filesystem::path_view::compare()
Lyberta
lyberta at lyberta.net
Sun Aug 25 05:31:00 CEST 2019
Lyberta:
> I'm thinking of abstraction where there is a virtual function call
> overhead but not a syscall overhead for every comparison and where there
> is still possible to compare paths to nonexistent files even when the
> actual comparison algorithm is implementation defined.
On the second thought, yes, a path component may be on exotic VFS that
can't be known ahead of time. So there is a way to optimize for common
cases like NTFS on Windows and EXT4 on Linux but no way to implement
general case without calling the OS to do actual comparison every time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
Url : http://www.open-std.org/pipermail/unicode/attachments/20190825/fafa1161/attachment.bin
More information about the Unicode
mailing list