https://bugs.winehq.org/show_bug.cgi?id=56985
Bug ID: 56985 Summary: how to improve the performance of Wine? Product: Wine Version: 9.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: csumushu@126.com Distribution: ---
Created attachment 76816 --> https://bugs.winehq.org/attachment.cgi?id=76816 demo.c
I have found that my program runs much slower when using Wine compared to running it directly on Windows. On Windows, it responds quickly, but when running with Wine, there is a delay of three to four seconds. After analyzing the program code, I discovered a loop within which semaphore operations are performed. The time consumption for a single semaphore operation is 10-4 seconds when using Wine, whereas it only takes 10-6 seconds on Windows.
I wrote a demo program to test it and indeed confirmed this. Semaphore operations are just one example; some other Windows APIs are also significantly slower when compared to Windows. Is there any way to optimize this?
https://bugs.winehq.org/show_bug.cgi?id=56985
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #1 from Zeb Figura z.figura12@gmail.com --- This is basically bug 36692.
https://bugs.winehq.org/show_bug.cgi?id=56985
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #2 from Fabian Maurer dark.shadow4@web.de --- Should be mark this as dupe then?
https://bugs.winehq.org/show_bug.cgi?id=56985
--- Comment #3 from mushu csumushu@126.com --- (In reply to Fabian Maurer from comment #2)
Should be mark this as dupe then?
Ok, I'll try that patch.
https://bugs.winehq.org/show_bug.cgi?id=56985
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, performance, | |source, testcase
https://bugs.winehq.org/show_bug.cgi?id=56985
mushu csumushu@126.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #4 from mushu csumushu@126.com --- (In reply to mushu from comment #3)
(In reply to Fabian Maurer from comment #2)
Should be mark this as dupe then?
Ok, I'll try that patch.
This patch works
https://bugs.winehq.org/show_bug.cgi?id=56985
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |DUPLICATE
--- Comment #5 from Ken Sharp imwellcushtymelike@gmail.com --- Nothing was fixed.
*** This bug has been marked as a duplicate of bug 36692 ***
https://bugs.winehq.org/show_bug.cgi?id=56985
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Austin English austinenglish@gmail.com --- Closing.