We added support for regular files to select in ce4c91d634258a6d7848ecaf66e2923b228808c6. This uses fstat to check if the file is S_ISREG. However, for real files this ends up in a real disk I/O request (DosQueryFileInfo) while we actually don't need it. If select is running in a tight loop, this will introduce an unnecessary slow down. We may use LIBC handle internals to avoid this potentially lengthy call at all.
We added support for regular files to select in ce4c91d634258a6d7848ecaf66e2923b228808c6. This uses
fstat
to check if the file is S_ISREG. However, for real files this ends up in a real disk I/O request (DosQueryFileInfo
) while we actually don't need it. If select is running in a tight loop, this will introduce an unnecessary slow down. We may use LIBC handle internals to avoid this potentially lengthy call at all.