Skip to content

[Java] optimize buffer copy#870

Merged
chaokunyang merged 1 commit intoapache:mainfrom
chaokunyang:optimize_array_copy
Aug 14, 2023
Merged

[Java] optimize buffer copy#870
chaokunyang merged 1 commit intoapache:mainfrom
chaokunyang:optimize_array_copy

Conversation

@chaokunyang
Copy link
Copy Markdown
Collaborator

What do these changes do?

sun.misc.Unsafe#copyMemory(java.lang.Object, long, java.lang.Object, long, long) is slower thant Arrays.copyOf for primivte array .

This PR optimize it by Arrays.copyOf

Related issue number

Closes #xxxx

Check code requirements

  • tests added / passed (if needed)
  • Ensure all linting tests pass, see here for how to run them

@chaokunyang chaokunyang merged commit 95c4455 into apache:main Aug 14, 2023
chaokunyang added a commit that referenced this pull request Aug 19, 2023
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