First execution of a freshly compiled program may be very gradual, subsequent executions are quick sufficient, I believe it’s associated to the mac making an attempt to confirm the binary, however I might somewhat keep away from this course of as I compile information very incessantly and I do know (at the least from information compiled on my own) that they aren’t dangerous.
The commonest situation for me is as observe:
- Write small program in c++ (as an instance easy hiya world
- Compile (
g++ -std=c++11 a.cpp -o sol)
- Execute it for first time
./sol(takes within the order of 5 seconds)
- Execute it once more
./sol(offers output immediately as anticipated)
I already noticed few associated questions, nevertheless I used to be unable to resolve the issue:
- What ought to I do about com.apple.quarantine?
- First execution after compiling extremely gradual, until it is “apparent” that every one loops will halt