]> arthur.barton.de Git - bup.git/commit
compat: directly assign bytes_from_uint = chr
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 31 Jan 2020 21:00:56 +0000 (22:00 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 1 Mar 2020 22:54:23 +0000 (16:54 -0600)
commita5943090495ea0e3fb3b67e95a3b796e21ac1918
treebf4477a71c3361f17e6dec87c5b86c13dfc6ce41
parente35273f61283787462f7bd2a9f9abf1d236c2ca8
compat: directly assign bytes_from_uint = chr

This is significantly faster than the indirection and
seems to reduce the runtime of the test suite by about
3% on my machine with python 2 (76.121s -> 73.725s,
but I tried only once which is clearly not enough.)

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/compat.py