[swift-evolution] [Review] SE-0078: Implement a rotate algorithm, equivalent to std::rotate() in C++

Dave Abrahams dabrahams at apple.com
Fri May 6 16:20:39 CDT 2016


on Fri May 06 2016, Nate Cook <natecook-AT-gmail.com> wrote:

>     How can you reverse a variable-length collection with a fixed number of
>     iterations? Are you talking about loop unrolling in the library?
>
> I mean looping count / 2 times instead of looping while lowIndex <
> highIndex,

Why do you think that will be faster?

-- 
Dave


More information about the swift-evolution mailing list