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