From 53dc87d9ece0b40f5458e70b67e203e254e3b1be Mon Sep 17 00:00:00 2001 From: Titusz Pan Date: Thu, 27 Jun 2024 11:39:57 +0200 Subject: [PATCH] Reduce memory copying in Cython version --- fastcdc/fastcdc_cy.pyx | 1 - 1 file changed, 1 deletion(-) diff --git a/fastcdc/fastcdc_cy.pyx b/fastcdc/fastcdc_cy.pyx index 74ebfee..57a59f9 100644 --- a/fastcdc/fastcdc_cy.pyx +++ b/fastcdc/fastcdc_cy.pyx @@ -35,7 +35,6 @@ def chunk_generator(stream, min_size, avg_size, max_size, fat, hf): h = hf(blob[:cp]).hexdigest() if hf else '' yield Chunk(offset, cp, raw, h) offset += cp - blob = blob[cp:] @cython.boundscheck(False)