News for hackers. Stuff that matters.
Re:Cross-compiling binaries for Windows is easier than build... by behnamoh on Sunday June 19, 2022 @02:10AM (#31796591)
> Windows’ file I/O and process launching is so slow.

It's not Windows' fault, rather it's NTFS.

Re:Cross-compiling binaries for Windows is easier than build... by pxc on Sunday June 19, 2022 @02:47AM (#31796823)
There's some documentation on this in some WSL issues on GitHub, but it's not just NTFS. It's stuff like the broader filesystem architecture's inclusion of pluggable 'filters' (kinda neat, but each layer of them incurs a performance cost) or the way commands on other operating systems depend on caches for certain syscalls that Windows doesn't keep, or keep anything equivalent to.

Too tired to go find them atm

Re:Cross-compiling binaries for Windows is easier than build... by espenwa on Sunday June 19, 2022 @04:12AM (#31797315)
This one? I remember it as an earnest description of the difficulties the WSL team had with the speed of NTFS - and I think it was one of the reasons for the switch to virtualisation in WSL2.

<https://github.com/Microsoft/WSL/issues/873#issuecomment-425...>

Re:Cross-compiling binaries for Windows is easier than build... by pxc on Sunday June 19, 2022 @12:32PM (#31800833)
Yeah, that's the GitHub comment, thank you!

My takeaway from that comment is that there are some important performances issues that apply generally to all filesystems on Windows. Maybe we can partially test whether that's the case by playing with WSL1 on ReFS, ExFAT (if that's even supported, with its limited permissions support, or ZFS, once OpenZFS on Windows stabilizes a bit.

Re:Cross-compiling binaries for Windows is easier than build... by fritigern on Sunday June 19, 2022 @03:31AM (#31797084)
NTFS is Windows' fault.
Re:Cross-compiling binaries for Windows is easier than build... by dblohm7 on Monday June 20, 2022 @12:16AM (#31806215)
Re:Cross-compiling binaries for Windows is easier than build... by rurban on Sunday June 19, 2022 @02:53AM (#31796862)
Rather it's their baroque ACL permission system, which is not able to cache inherited perms.
Re:Cross-compiling binaries for Windows is easier than build... by forgotpwd16 on Sunday June 19, 2022 @04:59AM (#31797554)
The ACL permission system is in NTFS. For example FAT32 doesn't have it.
Re:Cross-compiling binaries for Windows is easier than build... by rurban on Sunday June 19, 2022 @08:39AM (#31798755)
Yes, but if you turn off inheritance perf goes up 10x. It's a policy, not the NTFS driver itself.
Re:Cross-compiling binaries for Windows is easier than build... by forgotpwd16 on Sunday June 19, 2022 @09:38AM (#31799269)
Can you provide links providing more info for those statements?
Re:Cross-compiling binaries for Windows is easier than build... by rurban on Monday June 20, 2022 @10:30AM (#31810770)
no, just try it out.

all my cygwin build rules contained turning off inherited perms to be able to compile bigger systems under an hour. e g. https://github.com/rurban/cygwin-rurban/blob/master/release/...