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

My first script takes 2 seconds to run so I doubt you can type "my $i = 0;" faster than the running time you'd save. "That much analysis"? I did hardly any. And I believe my second one-liner already trumps either of your contributions. q-:

- tye        

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

Replies are listed 'Best First'.
Re^7: Why is this code so much slower than the same algorithm in C? (why)
by tilly (Archbishop) on Dec 16, 2008 at 17:42 UTC
    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.