in reply to Re^7: Odometer pattern iterator (in C).
in thread Odometer pattern iterator (in C). (Updated.)

Slightly faster. It's getting too silly, though.

Consistenly another 25% (5s v 6.5s). Indeed. your gains are now going to be constrained by the efficiency of the other code in the main loop that uses the generated indices.

Thanks for the opportunity to scrape some rust off my C skills :)

Thanks for taking that opportunity.

The way you've folded the inner and outer loop (from the A::C version) together, makes the requirements of the algorithm far clearer, and as you said, that's key.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked
  • Comment on Re^8: Odometer pattern iterator (in C).