Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run chunker in pipeline #859

Merged
merged 4 commits into from Oct 24, 2022
Merged

Run chunker in pipeline #859

merged 4 commits into from Oct 24, 2022

Conversation

bill-rich
Copy link
Collaborator

Split up oversize chunks as part of the engine pipeline instead of handling it in each source.

@bill-rich bill-rich requested review from a team as code owners October 24, 2022 02:00
logrus.WithError(err).Error("Error chunking reader.")
break
}
peekData, _ := reader.Peek(common.PeekSize)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: We should move the PeekSize and ChunkSize variables

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think we should change chunks to have readers instead of []byte for their data?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do think it might improve performance a bit and make code cleaner. I'll get a ticket created to track testing and making the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants