Kotlin under the hood: How inline functions work | by Max Sidorov | Nov, 2023
I conduct a lot of technical interviews and see that many developers do not understand the benefits of using inline functions . Why is crossinline needed and how reified works. Part of the source of common misconceptions about inline functions is that there used to…
Mobile App Development
0
Sequence optimizations: how my code got into kotlin | by Max Sidorov | Nov, 2023
I noticed that the implementation of the distinct function is algorithmically very similar to the filter function. However, the distinct function has a significant performance loss compared to regular collections (-15%), while the filter function outperforms collections by about 3%-5%. Measurement results — distinct Measurement…