https://kotlinlang.org logo
#codereview
Title
# codereview
s

Slackbot

01/06/2022, 10:08 PM
This message was deleted.
m

Matteo Mirk

01/07/2022, 11:20 AM
Optimize in which direction? Readability, speed, memory? Towards generalization or modularization?
v

Vivek Modi

01/07/2022, 11:21 AM
@Matteo Mirk thanks for replying me. I think Speed with memory efficent
m

Matteo Mirk

01/07/2022, 11:27 AM
Then you would need to write a benchmark for this code an measure the hot points, then you can decide where to intervene. Performance optimization can’t be done blindly just reading the code (apart from some well-known optimization patterns). It also depends on your scenario and usages. Keep in mind that often you can’t push optimization too far towards speed AND memory: in many scenarios those vectors are orthogonal.
v

Vivek Modi

01/07/2022, 11:28 AM
okk thanks @Matteo Mirk
3 Views