-
Notifications
You must be signed in to change notification settings - Fork 68
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
Add zero copy data writer for kudo. #2763
Conversation
Signed-off-by: Renjie Liu <[email protected]>
73645c3
to
606e935
Compare
build |
There was a problem hiding this 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. |
There was a problem hiding this comment.
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
There was a problem hiding this 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.
Closing this PR as will not merge. @liurenjie1024 please redo without GPL code. |
reserve
method inDataWriter
so that kudo data writer could reserve memory before actual writing happens. This helps avoiding unnecessay allocation and copy.OpenByteArrayOutputStream
and its corresponding data writer.OpenByteArrayOutputStream
could be used in customized shuffle manager to save memory.ByteArrayOutputStreamWriter
which helps saving memory copy without introducing any changes to shuffle manager.