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

Add zero copy data writer for kudo. #2763

Closed

Conversation

liurenjie1024
Copy link
Collaborator

  1. Add reserve method in DataWriter so that kudo data writer could reserve memory before actual writing happens. This helps avoiding unnecessay allocation and copy.
  2. Add OpenByteArrayOutputStream and its corresponding data writer. OpenByteArrayOutputStream could be used in customized shuffle manager to save memory.
  3. Add ByteArrayOutputStreamWriter which helps saving memory copy without introducing any changes to shuffle manager.

@liurenjie1024 liurenjie1024 changed the title Add Zero copy data writer for kudo. Add zero copy data writer for kudo. Jan 14, 2025
@liurenjie1024
Copy link
Collaborator Author

build

@liurenjie1024
Copy link
Collaborator Author

cc @abellina @revans2

Copy link
Collaborator

@binmahone binmahone left a comment

Choose a reason for hiding this comment

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

nit

*
* <br/>
*
* This code is copied from jdk's implementation.
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we state at the begining of the class that most of the class code is copied from jdk, and highlight what is added on ? for both copywrite and mainenance considerations

Copy link
Collaborator

@revans2 revans2 left a comment

Choose a reason for hiding this comment

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

"This code is copied from jdk's implementation."

This is a violation of java's license.

https://openjdk.org/legal/gplv2+ce.html

GPLv2 is not compatible with Apache 2.0 and no code from the java standard library can be included in this project ever.

@sameerz
Copy link
Collaborator

sameerz commented Jan 21, 2025

Closing this PR as will not merge. @liurenjie1024 please redo without GPL code.

@sameerz sameerz closed this Jan 21, 2025
@sameerz sameerz added the invalid This doesn't seem right label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants