keith-turner commented on PR #6082:
URL: https://github.com/apache/accumulo/pull/6082#issuecomment-3813811602
Seems like PreAllocatedArray could be replaced w/ a single static method
like the following. May try this in main. This change is a nice optimization
for 2.1.
```java
@SuppressWarnings("unchecked")
public static <T> List<T> newPreallocatedList(int size){
return Arrays.asList((T[]) new Object[size]);
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]