Skip to content

Conversation

leebyron
Copy link
Contributor

This is a non-breaking refactor of DataLoader's batching logic meant to simplify the load() method, put a more understandable abstraction in place which can be a target for more complex behavior (such as #113)

It replaces the concept of a LoaderQueue with a Batch. It moves all logic for creating this datastructure into a dedicated function, and moves the logic for splitting a batch (maxBatchSize) to batch creation time rather than batch dispatch time, which simplifies the dispatch logic.

@leebyron leebyron merged commit b5d7bf5 into master Nov 15, 2019
@leebyron leebyron deleted the batch-object branch November 15, 2019 01:32
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