[mlpack-git] master: reduce copy (5eaa2a9)

gitdub at mlpack.org gitdub at mlpack.org
Tue May 31 12:37:56 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/1f562a1aba7ae55475afcc95659511c2b7f694e5...5b8fdce471328f722fcd8c0f22a6d995ce22c98b

>---------------------------------------------------------------

commit 5eaa2a9a84cbf20b6770e680b7e54e68fb2a6335
Author: stereomatchingkiss <stereomatchingkiss at gmail.com>
Date:   Wed Jun 1 00:37:56 2016 +0800

    reduce copy


>---------------------------------------------------------------

5eaa2a9a84cbf20b6770e680b7e54e68fb2a6335
 src/mlpack/core/data/load_impl.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mlpack/core/data/load_impl.hpp b/src/mlpack/core/data/load_impl.hpp
index e8327b0..e3b3860 100644
--- a/src/mlpack/core/data/load_impl.hpp
+++ b/src/mlpack/core/data/load_impl.hpp
@@ -468,7 +468,7 @@ bool Load(const std::string& filename,
         tokens = details::ToTokens(lineTok);
         if(tokens.size() == cols)
         {
-          tokensArray.emplace_back(details::ToTokens(lineTok));
+          tokensArray.emplace_back(std::move(tokens));
         }
       }
       for(size_t i = 0; i != cols; ++i)




More information about the mlpack-git mailing list