Skip to content

GH-1803: Keep the old code for byte buffer copy#1833

Merged
afs merged 1 commit intoapache:mainfrom
afs:buff-old
Apr 7, 2023
Merged

GH-1803: Keep the old code for byte buffer copy#1833
afs merged 1 commit intoapache:mainfrom
afs:buff-old

Conversation

@afs
Copy link
Member

@afs afs commented Apr 7, 2023

This PR keeps the code (unused) for byte buffer copying that was replaces by #1800.

The original code was originally (a significant number of years ago) faster. Now it isn't, at least on the conventional architectures used for timing #1800. The JVM improves, hardware changes.

  • Add comments in ByteBufferLib
  • Rename ByteBufferLib.duplicate as ByteBufferLib.copyOf

  • Key commit messages start with the issue number (GH-xxxx or JENA-xxxx)

By submitting this pull request, I acknowledge that I am making a contribution to the Apache Software Foundation under the terms and conditions of the Contributor's Agreement.

Add comments
Rename ByteBufferLib.duplicate
@afs afs merged commit 9f3f5ae into apache:main Apr 7, 2023
@afs afs deleted the buff-old branch April 7, 2023 21:18
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.

2 participants