summaryrefslogtreecommitdiff
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-10-09 22:43:24 +0200
committerVictor Stinner <victor.stinner@gmail.com>2015-10-09 22:43:24 +0200
commitbe75b8cf2310e0be0f32590a1c0df919058002e8 (patch)
treed722afaec725263f1bf050dd99040de7929d4d61 /Python/bltinmodule.c
parentaecf63ee3a4408e9a6186b08d924d1492234dbea (diff)
downloadcpython-git-be75b8cf2310e0be0f32590a1c0df919058002e8.tar.gz
Issue #25349: Optimize bytes % int
Optimize bytes.__mod__(args) for integere formats: %d (%i, %u), %o, %x and %X. _PyBytesWriter is now used to format directly the integer into the writer buffer, instead of using a temporary bytes object. Formatting is between 30% and 50% faster on a microbenchmark.
Diffstat (limited to 'Python/bltinmodule.c')
0 files changed, 0 insertions, 0 deletions