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.
|
|---|