]> arthur.barton.de Git - bup.git/commitdiff
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)
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>

No differences found