mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 02:36:59 +00:00
Performance pass 3 (Manual array copy)
This commit is contained in:
parent
1087d27523
commit
335d4abbe1
@ -5,10 +5,7 @@ public class DoubleArrayUtils
|
||||
{
|
||||
public static void shiftRight(double[] values, double push)
|
||||
{
|
||||
for(int index = values.length - 2; index >= 0; index--)
|
||||
{
|
||||
values[index + 1] = values[index];
|
||||
}
|
||||
if (values.length - 2 + 1 >= 0) System.arraycopy(values, 0, values, 1, values.length - 2 + 1);
|
||||
|
||||
values[0] = push;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user