Note that BitSet version removes single capturing lambda and additional
stream step (every step creates at least two objects), so the tradeoff is
not so obvious. Also it's probably possible that single-element array could
be scalarized by JIT.

With best regards,
Tagir Valeev.

On Thu, Jun 29, 2017 at 5:25 PM, Brian Burkhalter <
brian.burkhal...@oracle.com> wrote:

>
> On Jun 29, 2017, at 7:21 AM, Roger Riggs <roger.ri...@oracle.com> wrote:
>
> > Just interesting how much attention this snippet of code received.  :)
>
> Agreed.
>
> Thanks,
>
> Brian
>

Reply via email to