Skip to content

Commit cb24cc3

Browse files
authored
Merge pull request #35 from elimity-com/bugfix/34-chunk-performance
Fix performance regression in chunking
2 parents eb2c91e + ca15d26 commit cb24cc3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

elimity_insights_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
from dateutil.tz import tzlocal
1717
from dateutil.utils import default_tzinfo
18-
from more_itertools import ichunked
18+
from more_itertools import chunked
1919
from requests import post
2020

2121

@@ -235,7 +235,7 @@ def _encode(body: Any) -> Iterable[bytes]:
235235
encoded = map(str.encode, chunks)
236236
compressed = _compress(encoded)
237237
chained = chain.from_iterable(compressed)
238-
buffered = ichunked(chained, DEFAULT_BUFFER_SIZE)
238+
buffered = chunked(chained, DEFAULT_BUFFER_SIZE)
239239
return map(bytes, buffered)
240240

241241

0 commit comments

Comments
 (0)