diff options
author | Craig Robson <craig@zhatt.com> | 2024-06-27 09:44:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-27 16:44:40 +0000 |
commit | e9b4ec614b66d11623b80471409c16a109f888d5 (patch) | |
tree | 786322a7c82360c0ad7bf2adacaeefcf48b46525 /Python/pylifecycle.c | |
parent | 0890ad7c024ccf29614849b6ffadcb92c0e91ce7 (diff) | |
download | cpython-e9b4ec614b66d11623b80471409c16a109f888d5.tar.gz cpython-e9b4ec614b66d11623b80471409c16a109f888d5.zip |
gh-105623 Fix performance degradation in logging RotatingFileHandler (GH-105887)
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.
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Diffstat (limited to 'Python/pylifecycle.c')
0 files changed, 0 insertions, 0 deletions