[
https://issues.apache.org/jira/browse/MATH-1569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17319901#comment-17319901
]
Gilles Sadowski commented on MATH-1569:
---------------------------------------
{quote}a function call
{quote}
If not taking the context into account, an additional call would decrease
performance. And sometimes it's OK if it improves readability, or enforces
reuse.
My point is that such changes should be a case-by-case decision: Sometimes it
does make the code clearer, sometimes not. In the former case, it's clearer to
use {{Arrays.copyOf}} or {{clone()}} wherever possible. In the latter case, a
benchmark should show that the gain is worth it.
> Manual array copy
> -----------------
>
> Key: MATH-1569
> URL: https://issues.apache.org/jira/browse/MATH-1569
> Project: Commons Math
> Issue Type: Sub-task
> Reporter: Arturo Bernal
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)