On Sat, 16 May 2020, Qian Hong wrote:
I was working on using Wine as a cross-compile platform a few years ago, and I encountered exactly the same problem. Sabastian wrote a patch to improve Wine performance for short-lived processes, I recommend you to give it a try, it brought significant improvement for me: https://github.com/wine-staging/wine-staging/tree/master/patches/gdi32-Lazy_...
Hopefully, someone would review the Wine-Staging patch and bring it to Wine master branch someday :) (Our Wine-Staging maintainers are doing an amazing job on upstreaming patches, thank you!)
For me, for running lots of short-lived wine processes, the single biggest speedup comes from running a persistent wine server. Without any wine processes running, run "wineserver -p". That wineserver instance will then stay around (until terminated with "wineserver -k"), greatly reducing the startup time for each command.
// Martin