Ivan Babrou added the comment:
The issue in Salt should be fixed by the following PR:
* https://github.com/saltstack/salt/pull/57062
Still, I think Python itself could do better.
--
___
Python tracker
<https://bugs.python.org/issue39
New submission from Ivan Babrou :
I noticed that a program (SaltStack) is a lot slower under Python 3. After some
stracing I was able to find that inspect module is to blame.
In strace output I can see a ton of calls like this:
05:31:56.698829 newfstatat(AT_FDCWD, "",
0x7