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 <[email protected]> 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 <[email protected]> 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: [email protected] private email: [email protected] homepage: http://beza1e1.tuxen.de _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
