]> arthur.barton.de Git - bup.git/commit
midx: shun buffers
authorRob Browning <rlb@defaultvalue.org>
Fri, 27 Dec 2019 19:24:56 +0000 (13:24 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sun, 19 Jan 2020 17:46:07 +0000 (11:46 -0600)
commitd5f588486882fbee82dd6855cad51295bd6d8106
treec302a81eecf35ea80318067bb814d9b31989956d
parentb8c7652b9a64a178a913a5c66a9e2cab1ab4fcc4
midx: shun buffers

Rework PackMidx to avoid buffers which are reasonably heavyweight, and
will be even larger (as memoryviews) in python 3, requiring ~200
bytes.  Instead, just use direct offsets into the underlying mmap --
slicing an mmap currently just produces bytes.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/midx.py