i have a frequently called methods and i want to know is there any difference between the two ways of writing
the code like this
def funA(a: Int): Unit = {
def funB(b: Int): Int = xxx
funB(a)
}
def funD(b: Int): Int = xxx
def funC(a: Int): Unit = {
funD(a)
}
Will funA have different performance or memory usage than funC?