On Tue, 21 Mar 2023 12:39:18 GMT, Chen Liang <li...@openjdk.org> wrote:
> I am interested in the optimization potential of > `arraylist.reversed().addAll()` and similar batch operations. Though reverse > list/deque views are a good start, I still wish to see customized > implementations for `reversed` to perform `addAll` `removeIf` efficiently. OK. I took a quick look over `ReverseOrderListView` and it seems like there are some things that can be optimized there. If those aren't sufficient, then additional overrides in `ArrayList` _et al_ might be warranted. ------------- PR Comment: https://git.openjdk.org/jdk/pull/7387#issuecomment-1480345189