• squaresinger@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    21 hours ago

    Thanks for the summary!

    Yeah, in Python each . is a dictionary lookup. The cost of having a dynamic language where the compiler can do pretty much no optimizations (and yes, Python does have a compiler).

    In static languages these lookups can be collapsed to a single pointer address by the compiler.