On Fri, 1 Sep 2023 09:07:34 GMT, Per Minborg <pminb...@openjdk.org> wrote:

> > Maybe it would make sense to start with a JDK-internal variant before 
> > exploring potential public API?
> 
> This is certainly one alternative.

When looking at this I thought about that too. It seems like the particular 
case where this optimization is applicable is very specific, and I'm on the 
fence as to whether this deserves a public API. At the same time, there might 
be near-misses that could be difficult to address once the API is set in stone. 
I'd suggest to let it bake (inside the JDK) for some time, and later on decide 
whether it should be exposed as a public API.

All that said, the idea of exposing a fast predicate over an immutable snapshot 
is very cute and clever :-)

-------------

PR Comment: https://git.openjdk.org/jdk/pull/15530#issuecomment-1702462814

Reply via email to