• Diplomjodler@feddit.de
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    As long as you do all your lookups with dicts or sets performance is pretty decent for smaller workloads.

    • grue@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Python is secretly a functional-paradigm language. If you’re not making liberal use of comprehensions instead of loops (especially loops with LBYL conditions in them), you’re doing it wrong.