summaryrefslogtreecommitdiffstats
path: root/Python/config_common.h
diff options
context:
space:
mode:
authormorotti <r.morotti@gmail.com>2024-04-23 15:51:20 (GMT)
committerGitHub <noreply@github.com>2024-04-23 15:51:20 (GMT)
commit8fa124868519eeda0a6dfe9191ceabd708d84fa7 (patch)
treea4ca56f9abcd60ed19cc0d37a3239448b4106582 /Python/config_common.h
parent23950beff84c39d50f48011e930f4c6ebf32fc73 (diff)
downloadcpython-8fa124868519eeda0a6dfe9191ceabd708d84fa7.zip
cpython-8fa124868519eeda0a6dfe9191ceabd708d84fa7.tar.gz
cpython-8fa124868519eeda0a6dfe9191ceabd708d84fa7.tar.bz2
gh-117151: optimize BufferedWriter(), do not buffer writes that are the buffer size (GH-118037)
BufferedWriter() was buffering calls that are the exact same size as the buffer. it's a very common case to read/write in blocks of the exact buffer size. it's pointless to copy a full buffer, it's costing extra memory copy and the full buffer will have to be written in the next call anyway. Co-authored-by: rmorotti <romain.morotti@man.com>
Diffstat (limited to 'Python/config_common.h')
0 files changed, 0 insertions, 0 deletions