RFR: 8266571: Sequenced Collections
Stuart Marks
smarks at openjdk.org
Wed Mar 22 22:38:52 UTC 2023
On Tue, 21 Mar 2023 12:39:18 GMT, Chen Liang <liach at 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
More information about the core-libs-dev
mailing list