commons-math icon indicating copy to clipboard operation
commons-math copied to clipboard

[MATH-1539] use System.arraycopy instead of loop for better performance.

Open XenoAmess opened this issue 5 years ago • 2 comments

use System.arraycopy instead of loop.

XenoAmess avatar Jun 04 '20 20:06 XenoAmess

Coverage Status

Coverage increased (+0.007%) to 90.563% when pulling a6d8853b9988e4a7d0a8aa7bd9ec2ef437494263 on XenoAmess:use_System.arraycopy into ba8a26705e7656201951ddc1a4a67c6aaa62d146 on apache:master.

coveralls avatar Jun 05 '20 07:06 coveralls

related informations about this change: https://stackoverflow.com/questions/8526907/is-javas-system-arraycopy-efficient-for-small-arrays

do I still need a jmh performance benchmark for this pr? means to create a test for showing whether System.arrayCopy faster than original copy in loop?

XenoAmess avatar Jun 06 '20 12:06 XenoAmess