processing/processing-docs

Copy() documentation

Closed this issue · 1 comments

Issue description

I presume copy Always uses System.arraycopy() and Never uses common references (which then would not be a copy.)
I also doubt it is faster than a for loop because the hotspot jit compiler will autovectorize such a simple construct.

URL(s) of affected page(s)

https://www.processing.org/reference/arrayCopy_.html

Proposed fix

Admit it always uses System.arraycopy() and is just a useful shortcut way of expressing that.

REAS commented

The last line of the reference page says, "Internally, this function calls Java's System.arraycopy() method, so most things that apply there are inherited." We don't want to start with that statement because this version of the reference is for beginners who don't know about System.arraycopy()