• noli
    link
    fedilink
    arrow-up
    22
    ·
    6 months ago

    Compiler optimizations like function inlining are your friend.

    Especially in functional languages, there are a lot of tricks a compiler can use to output more efficient code due to not needing to worry about possible side effects.

    Also, in a lot of cases the performance difference does not matter.