Open brayandiazssjd opened 1 month ago
@brayandiazssjd runghc
both compiles and runs the program, and the slowdown could be in compilation stage. You can probably try compilation with ghc
and then run the compiled program to see where slowdown is happening.
In either case it would be better to open the issue in ghc issue tracker for a solution to this kind of a problem https://gitlab.haskell.org/ghc/ghc/-/issues
Hi, @dfordivam I measured the time for compilation and it only takes about two seconds, and the execution of the .exe file takes less than a second. I guess ghc is not the problem, do you still recommend me to open the issue in ghc's gitlab? Thanks for your time!
It is theoretically possible though that the problem is with our shim exe... so to truly know which is the case you'd have to execute the ghc that's in /c/ghcup/ghc/9.4.8/
somewhere
Computer information OS: Windows 10 22H2 Architecture: x64
Hello, I have installed Haskell in Windows throw the Powershell command provided by the official website. I have installed it in a existing msys2 installation. The issue I have is that when executing 'runghc' command in msys2 prompt, it takes about 8 seconds. I do not know if it is normal in Windows, but in Linux it takes less than 1 second with the same source code (a hello world print). I also have to mention that when verifying version of runghc it has a good time response (less than a second).
I made a trace command and I noticed that the part that takes the longer is just before the print of the hello world in the line "--- Process 10944 loaded C:\ghcup\ghc\9.4.8\mingw\bin\libwinpthread-1.dll at 00007ffc72f20000". I would appreciate help or information about this "problem". Thank you very much.
Here is complete output of the strace command: