Why glibc's fstat() is slow
Why glibc's fstat() is slow
Posted Sep 14, 2023 20:00 UTC (Thu) by izbyshev (subscriber, #107996)Parent article: Why glibc's fstat() is slow
For newer architectures (riscv32, loongarch), the simpler fstat syscall doesn't exist at all[1], and statx is the only option to implement fstat, forcing the useless path check. So no, it's not just a glibc problem, at least if we're looking beyond x86-64.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/...
