<Which methods are used for optimisation?> Hi All,...
# forum
r
Which methods are used for optimisation? Hi All, i want to know which type of map initialisation is mostly preferred when optimizing your code: map[key] = map.getOrPut(key){ defaultValue} + someOperation map[key] = map[key]?.let{ it → someOperation} ?: defaultValue if(!map.contains(key)) { map.put(key, value) } I also want to know, do you guys think about the which method to use to have more lower optimization or you depend upon kotlin ide or jetbrains to decide which method is more optimize? 1 post - 1 participant...