Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
CollectOperator.java
rowList = new ArrayList<Object>(); ... } else { result.o = rowList.remove(0); result.oi = standardRowInspector; }
Removing from the head of an ArrayList is an expensive operation because it needs to shift all of the elements down in the array for each call. Better to use a Queue