in reply to Re^6: Why is this code so much slower than the same algorithm in C? (why)
in thread Why is this code so much slower than the same algorithm in C?

Can you type that in under 0.5 s? If so, then the my is a win. And in the thread you previously discussed having talked about it in chatter and corrected 2 mistakes. I took that as a sing that you did some analysis.

I don't remember the second one-liner. It is obviously faster, but doesn't fit with the theme of trying to micro-optimize the loop.

  • Comment on Re^7: Why is this code so much slower than the same algorithm in C? (why)