• sloppy_diffuser@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    for i in itertools.count(): ... will count to infinity.

    Better make it into a dictionary so it’s O(1) complexity instead of O(n) while you’re at it.