Hacker News new | ask | show | jobs
by account42 1954 days ago
> wine should have equal performance to running a program "natively" on windows

That is not guaranteed. Windows programs and Win32 APIs are writting for and optimized to run on the the NT kernel which has different perfomance characteristics from the Linux kernel. Some example:

- Wine needs to emulate a case-insensitive filesystem on top of a case sensitive filesystem, which is less efficient thatn using a filesystem / kernel FS layer that is designed for this.

- Some locking primitives are different enough that Linux will need additional syscalls to let Wine reach the same perfomance when emulating the Windows ones [0]

[0] https://www.phoronix.com/scan.php?page=news_item&px=FUTEX2-2...

1 comments

Hmm, the filesystem thing would be a constant slowdown, and there is the locking/async primitives that are generally better on Windows, but at least those are being worked on, both for Wine and Linux in general. I kind of recall reading about an option for ext4 to allow optional case insensitive operation? Ah! Recently added it seems. Needs a pretty recent kernel and a format-time config option that I doubt any linux distro is using yet, though [0]

I just meant that, in general, Wine should be very close to as fast on Windows, since it can usually implement win32 DLLs without much emulation/translation needed. Excepting all the bits that do :-)

[0] https://www.collabora.com/news-and-blog/blog/2020/08/27/usin...