I use clone, because the values are moved into the closure. Otherwise type checker complains about use of moved value.
When I clone for lawrence as well, the numbers do not change. On Wed, Sep 25, 2013 at 11:11 PM, Thad Guidry <thadgui...@gmail.com> wrote: > wait a sec.. your cheating in the benchmark... > > Why did you clone() the array for theirs and not Lawrence's ? > > See here: https://gist.github.com/qznc/6704053#file-benchmark-L76 > > > > On Wed, Sep 25, 2013 at 4:07 PM, Thad Guidry <thadgui...@gmail.com> wrote: >>> >>> >>> Apparently, the version of Scott Lawrence is the fastest one, unless I >>> made a mistake. >>> >> >> Longest code (and simplest to understand code)... FTW ! :) (as usual) >> >> -- >> -Thad >> Thad on Freebase.com >> Thad on LinkedIn > > > > > -- > -Thad > Thad on Freebase.com > Thad on LinkedIn -- Andreas Zwinkau work email: zwin...@kit.edu private email: q...@web.de homepage: http://beza1e1.tuxen.de _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev