4 ms·
OP's code is much easier to understand, though, which is the main (only) purpose of their code
by make3 3y ago
OP's code is much easier to understand, though, which is the main (only) purpose of their code
- cs702 3y agoCan't argue with that! :-) For what it's worth, you can keep both, and make parallel vs sequential execution an option, with a boolean flag. You can also leave the sequential code as a comment explaining what the parallel code does. Or, if slow execution doesn't bother you, leave it as is.
- bradfitz 3y agoYou're replying to somebody who was arguing for readability being its virtue and you're proposing ... adding options and alternate code paths? :)
- anytime5704 3y agoVia a boolean parameter, no less.
- cs702 3y agoTouché. I just updated my comment :-)