• Diplomjodler@feddit.de
    link
    fedilink
    arrow-up
    2
    ·
    11 months 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
      ·
      11 months 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.