Skip to content

(chores) performance: use native array copying which may benefit from intrinsic functions#9954

Merged
orpiske merged 1 commit intoapache:mainfrom
orpiske:minor-perf
Apr 26, 2023
Merged

(chores) performance: use native array copying which may benefit from intrinsic functions#9954
orpiske merged 1 commit intoapache:mainfrom
orpiske:minor-perf

Conversation

@orpiske
Copy link
Contributor

@orpiske orpiske commented Apr 26, 2023

Java's System.arraycopy is instrinsified, so, in theory, it should provide better performance (when supported/available on the platform/etc) at best and equivalent performance to the existing one at worst.

Running on my test HW, it seems to indicate a small performance gain compared to existing code:

W/ this:

Geometric mean: 714894.9672412889 Standard deviation: 39656.14503166896

Baseline
Geometric mean: 666166.262717514 Standard deviation: 53664.56234237712

But it was not an extensive test, so the results are probably overly dramatic here.

@github-actions
Copy link
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟

⚠️ Please note that the changes on this PR may be tested automatically.

If necessary Apache Camel Committers may access logs and test results in the job summaries!

@github-actions
Copy link
Contributor

🚫 There are (likely) no components to be tested in this PR

@orpiske orpiske merged commit d4626e9 into apache:main Apr 26, 2023
@orpiske orpiske deleted the minor-perf branch April 10, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants