3 ms·
> A compromise might be to loop over short sub-spans of the array, and do an exit early test at the end of each sub-span. Another good use of Duff's device!
by progval 9y ago
> A compromise might be to loop over short sub-spans of the array, and do an exit early test at the end of each sub-span.
Another good use of Duff's device!
- redcalx 9y agoFor reference: https://en.wikipedia.org/wiki/Duff%27s_device https://en.wikipedia.org/wiki/Duff%27s_device