user written terminal programs start incredibly slowly

Since updating to Monterey, user written terminal programs can start incredibly slowly.

For example:

% time ./a.out
Hello World
./a.out  0.00s user 0.00s system 0% cpu 1:06.23 total
%

Over a minute to start a classic a.out???

#include <iostream>

int main() {
        std::cout << "Hello World" << std::endl;
        return 0;
}

I have disabled malwarebytes, told "Developer Tools" to grant Terminal an exemption and examined my terminal's PATH for any inefficiency.

Running the same program over and over might be instant or minutes of delay.

Since I write and run console applications all day long preparing materials or presenting materials in class, this is killing me.

Help?

I am on an M1 MAX running 12.4.

Thanks

Posted on Jun 23, 2022 12:06 PM

Reply

Similar questions

5 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

user written terminal programs start incredibly slowly

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.