summaryrefslogtreecommitdiffstats
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorCraig Robson <craig@zhatt.com>2024-06-27 16:44:40 (GMT)
committerGitHub <noreply@github.com>2024-06-27 16:44:40 (GMT)
commite9b4ec614b66d11623b80471409c16a109f888d5 (patch)
tree786322a7c82360c0ad7bf2adacaeefcf48b46525 /Python/Python-ast.c
parent0890ad7c024ccf29614849b6ffadcb92c0e91ce7 (diff)
downloadcpython-e9b4ec614b66d11623b80471409c16a109f888d5.zip
cpython-e9b4ec614b66d11623b80471409c16a109f888d5.tar.gz
cpython-e9b4ec614b66d11623b80471409c16a109f888d5.tar.bz2
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/Python-ast.c')
0 files changed, 0 insertions, 0 deletions