Re: RFR: 8274715: Implement forEach in Collections.CopiesList [v2]

2021-10-05 Thread Сергей Цыпанов
On Tue, 5 Oct 2021 09:18:57 GMT, Сергей Цыпанов wrote: >> Originally was proposed by Zheka Kozlov here: >> http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-December/057192.html >> >> Just a tiny optimization: we can use for-i loop instead of >> `Iterable.forEach()` which is relying o

Re: RFR: 8274715: Implement forEach in Collections.CopiesList [v2]

2021-10-05 Thread Martin Buchholz
On Tue, 5 Oct 2021 09:18:57 GMT, Сергей Цыпанов wrote: >> Originally was proposed by Zheka Kozlov here: >> http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-December/057192.html >> >> Just a tiny optimization: we can use for-i loop instead of >> `Iterable.forEach()` which is relying o

Re: RFR: 8274715: Implement forEach in Collections.CopiesList [v2]

2021-10-05 Thread Сергей Цыпанов
On Mon, 4 Oct 2021 16:51:27 GMT, Martin Buchholz wrote: >> Сергей Цыпанов has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains four additional >> com

Re: RFR: 8274715: Implement forEach in Collections.CopiesList [v2]

2021-10-05 Thread Сергей Цыпанов
> Originally was proposed by Zheka Kozlov here: > http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-December/057192.html > > Just a tiny optimization: we can use for-i loop instead of > `Iterable.forEach()` which is relying on iterator. > > Simple benchmark demonstrates slight improveme