▲ 18 ▼ unrolling loops is efficient, right? (lemmy.max-p.me) submitted 3 years ago by dorktangent@lemmy.max-p.me to c/programmer_humor@programming.dev 7 comments fedilink hide all child comments saw a 2nd year CS guy run a maze solver (for final exam) with 300 nested if-statements. worked about 50% of the time. so he added another 5000 nested ifs and got it up to 90%. good enough!
[–] ICastFist@programming.dev 1 point 3 years ago "It's not stupid if it works" permalink fedilink source parent