R
Rob Shepherd
I am wondering whether or not...
System.arraycopy() is a costly operation?
maybe for primitive[] is would take time but for Object[] it is surely just moving
reference data isn't it?
How many bytes makes up typical object reference data?
I am thinking about using ArrayList to make a FIFO
add(object) to enqueue
and
remove(0) to dequeue
but for every action there is a System.arraycopy
Or should i implement a circular queue type fixed length array?
System.arraycopy() is a costly operation?
maybe for primitive[] is would take time but for Object[] it is surely just moving
reference data isn't it?
How many bytes makes up typical object reference data?
I am thinking about using ArrayList to make a FIFO
add(object) to enqueue
and
remove(0) to dequeue
but for every action there is a System.arraycopy
Or should i implement a circular queue type fixed length array?