On Thu, Nov 10, 2016 at 10:03 PM, Matthias Metzger
<[email protected]> wrote:
> Though it probably does not matter, I just wanted to add, that the
> chained lambda does null checks for the contained object for every #map
> call in the chain. Except for the property model, neither of the others
> does that - at least, as far as I could see.

I've tested it, and adding additional cases for the if statements only
make the benchmark run longer for the added tests. In the grand
picture and even the small picture the null checks are negligible. A
method call costs an order more cycles according to these tests.

There's so much to love about micro benchmarks, mostly the discussions
that arise from them about micro details ;-)

:beers:

Martijn

Reply via email to