Why glibc's fstat() is slow
Why glibc's fstat() is slow
Posted Sep 14, 2023 21:56 UTC (Thu) by guillemj (subscriber, #49706)In reply to: Why glibc's fstat() is slow by brenns10
Parent article: Why glibc's fstat() is slow
There is https://sourceware.org/bugzilla/show_bug.cgi?id=24004 with a patch attached. You can use localtime_r(3) to avoid this problem. And at least for multithreaded code I'd expect it to be using that already, but otherwise other code might indeed suffer from this issue.
