]> arthur.barton.de Git - bup.git/commit
vint: implement pack() without BytesIO
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 31 Jan 2020 22:28:29 +0000 (23:28 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sat, 15 May 2021 18:56:36 +0000 (13:56 -0500)
commit717d27e2f71e957aedbf99abdf95a86364b137c8
tree8496d856933795b08beb0de4193780bb82a9fd69
parentfcb11e0fd5df5ee606df6404bb1f9ce8dc41baab
vint: implement pack() without BytesIO

Using BytesIO here makes it slower since it resizes the
memory quite bit, using a list to collect and then joining
that list makes it faster.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
lib/bup/vint.py