• sloppy_diffuser@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    4
    ·
    11 months 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.