3 ms·
The most interesting thing is that it took one day to write the C version and several months for the assembly version, because the C version uses a simpler algo
by bonzini 5y ago
The most interesting thing is that it took one day to write the C version and several months for the assembly version, because the C version uses a simpler algorithm. Talk about diminishing returns. :)
- pokepim 5y agoAnd you could copy paste Python version from SO and have it running in less than a minute, so here’s the winner :)
- bonzini 5y agoIf the Python version is 2000 times slower, the breakeven would be after a few terabytes of FizzBuzz.
- DeathArrow 5y agoYes, but if you start the Python version and still have 5 minutes left from the day, the C version will overtake Python.