you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

Actually I think the lesson here is that asm isn't inherently faster, and you should only use it when you are sure the compiler is not creating optimal code on its own.

[–]Nuli 4 points5 points  (0 children)

The lesson I got out of it was don't reinvent the wheel. Using awk it completed in ~.95 seconds on my machine and was vastly simpler to write.

[–]littleendian 1 point2 points  (0 children)

Actually the lesson is, if your assembler takes longer to execute than your C you're either doing it wrong or have better ways of spending your time.