The thing I am trying to ask is should we replace all lambda calls inside of our project to function reference and don't care much about performance as with k2 compiler its quite evident that it'll be much faster.
a
Arjan van Wieringen
05/19/2024, 10:10 AM
Does this performance difference matter in your project?
m
Mahmoo
05/19/2024, 10:12 AM
Practically speaking, No.
Because the above test run a loop for 1 billion times.
a
AdamW
05/19/2024, 11:14 AM
How are you testing this? Are you sure you’re it’s not JIT at work?
The article is not a valid microbenchmark for something like this anyway.