Skip to content

switch to using map partitions rather than map, speeds things up by minimizing dask management overhead#40

Merged
davidackerman merged 1 commit into
mainfrom
map-partition
Jul 16, 2025
Merged

switch to using map partitions rather than map, speeds things up by minimizing dask management overhead#40
davidackerman merged 1 commit into
mainfrom
map-partition

Conversation

@davidackerman

@davidackerman davidackerman commented Jul 16, 2025

Copy link
Copy Markdown
Collaborator

@stuarteberg

previously we were using bag.map but that is slow since each function call is managed by dask. by switching to map partitions, dask calls a function once per partition, which itself now calls the functions in that partition.

@davidackerman
davidackerman merged commit 0b13be7 into main Jul 16, 2025
2 checks passed
@davidackerman
davidackerman deleted the map-partition branch July 16, 2025 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant