[mlpack] 154/207: refine comments

Barak A. Pearlmutter barak+git at pearlmutter.net
Thu Mar 23 17:53:49 UTC 2017


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to branch master
in repository mlpack.

commit 798188844b44d645b5a8e431734b0e7853cf522e
Author: stereomatchingkiss <stereomatchingkiss at gmail.com>
Date:   Mon Jun 6 12:21:31 2016 +0800

    refine comments
---
 src/mlpack/core/data/load_csv.hpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mlpack/core/data/load_csv.hpp b/src/mlpack/core/data/load_csv.hpp
index 05d8b5e..2804662 100644
--- a/src/mlpack/core/data/load_csv.hpp
+++ b/src/mlpack/core/data/load_csv.hpp
@@ -86,7 +86,8 @@ public:
     //parse % "," means you want to parse string like "1,2,3,apple"(noticed it without last comma)
 
     //qi::raw restrict the automatic conversion of boost::spirit, without it, spirit parser
-    //will try to convert the string to std::string, this would cause memory allocation
+    //will try to convert the string to std::string, this may cause memory allocation(if small string 
+	//optimization fail).
     //After we wrap the parser with qi::raw, the attribute(the data accepted by functor) will
     //become boost::iterator_range, this could save a tons of memory allocations
     qi::parse(begin, end, qi::raw[*~qi::char_(",\r\n")][findColSize] % ",");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git



More information about the debian-science-commits mailing list