[3.13] gh-105623 Fix performance degradation in logging RotatingFileHandler (GH-105887) (GH-121117)
The check for whether the log file is a real file is expensive on NFS filesystems. This commit reorders the rollover condition checking to not do the file type check if the expected file size is less than the rotation threshold. (cherry picked from commit e9b4ec614b66d11623b80471409c16a109f888d5) Co-authored-by: Craig Robson <craig@zhatt.com> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
M
Miss Islington (bot) committed
e310d2bd71b72ad050e20a3da30636e0970a6fc2
Parent: d5441f6
Committed by GitHub <noreply@github.com>
on 6/28/2024, 9:23:38 AM