Reputation: 1005
Bought a new, more powerful Windows system and installed Vscode on it. To my surprise, running basic Cpp files was much more slow on it. After some investigation here are my observations about the issue -
cd "d:\cpp_primer\" ; if ($?) { g++ arr1.cpp -o arr1 } ; if ($?) { .\arr1 }
which is indirectly the same thing.\arr1
showed output very fast.My deduction is that it is related to checking the code signature. Some days ago, I read an article where MacOs was checking them very frequently even on Xcode scripts.
Coincidentally, while installing Msys2
on this system, there was error like running scripts is disabled on this system...
which was solved when I changed "ExecutionPolicy" of both "CurrentUser" and "LocalMachine" from Undefined
to RemoteSigned
.
Thanks in advance.
Upvotes: 0
Views: 666