• mcc
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    I mean this can clearly be further optimized.

      • mcc
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        No I mean, the if clause on overfishing is getting in the way of profiting. You can save at least 2 cycles in the loop.

        Then you might want to consider unrolling the loop or add multithreading.

        There is a slight chance of running out of resources but, I mean, what are the chances?