Skip to content

Commit 3837806

Browse files
committed
Improved performance of delta_chunk_slice method a tiny bit, but it really needs to go to c
1 parent 9b0773b commit 3837806

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fun.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,14 @@ def delta_list_apply(dcl, bbuf, write, lbound_offset=0, size=0):
210210
def delta_list_slice(dcl, absofs, size):
211211
""":return: Subsection of this list at the given absolute offset, with the given
212212
size in bytes.
213-
:return: DeltaChunkList (copy) which represents the given chunk"""
213+
:return: list (copy) which represents the given chunk"""
214214
dcllbound = dcl.lbound()
215215
absofs = max(absofs, dcllbound)
216216
size = min(dcl.rbound() - dcllbound, size)
217217
cdi = _closest_index(dcl, absofs) # delta start index
218218
cd = dcl[cdi]
219219
slen = len(dcl)
220-
ndcl = DeltaChunkList()
220+
ndcl = list()
221221
lappend = ndcl.append
222222

223223
if cd.to != absofs:

0 commit comments

Comments
 (0)