[issue39643] Python calls newfstatat for "" in inspect

2020-05-03 Thread Ivan Babrou
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

[issue39643] Python calls newfstatat for "" in inspect

2020-02-15 Thread Ivan Babrou
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