• ARGVMI~1.PIF@mastodon.sdf.org
    link
    fedilink
    arrow-up
    4
    ·
    24 hours ago

    @HaraldKi

    I am admittedly a bit…emotional about not wasting memory. Growing up on a 486 with 4MB of RAM does that to you, I guess.

    The extra function will only be slower if the compiler/interpreter doesn’t inline it, which most compilers/interpreters including JavaScript will, so it’s mostly just a memory-usage issue. But I have used rather simple interpreters that *don’t* inline functions, and one of them even came with a warning that function calls are slow!

    @codeinabox