  | | | Optimization | Optimization 2007-02-01 - By >@>;52 ;LO
Back --Boundary-00 (See http://ary-00.ora-code.com)=_XCfwFWYICHFb9JZ Content-Type: text/plain; charset="utf-8 (See http://utf-8.ora-code.com)" Content-Transfer-Encoding: 7bit Content-Disposition: inline
I guess this patch should give a little acceleration
--Boundary-00 (See http://ary-00.ora-code.com)=_XCfwFWYICHFb9JZ Content-Type: text/x-diff; charset="utf-8 (See http://utf-8.ora-code.com)"; name="row.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="row.patch"
Index: lib/row.cpp =================================================================== --- lib/row.cpp (revision 1419) +++ lib/row.cpp (working copy) @@ -47,7 +47,8 @@ data_.clear(); is_nulls_.clear(); initialized_ = true; - for (unsigned int i = 0; i < size(); i++) { + size_type sz = res_->num_fields(); + for (unsigned int i = 0; i < sz; i++) { data_.insert(data_.end(), (d[i] ? std::string(d[i], jj[i]) : std::string("NULL"))); is_nulls_.insert(is_nulls_.end(), d[i] ? false : true); @@ -65,7 +66,7 @@ Row::size_type Row::size() const { - return res_->num_fields(); + return data_.size(); } const ColData Row::at(size_type i) const
--Boundary-00 (See http://ary-00.ora-code.com)=_XCfwFWYICHFb9JZ Content-Type: text/plain; charset=us-ascii
-- MySQL++ Mailing List For list archives: http://lists.mysql.com/plusplus To unsubscribe: http://lists.mysql.com/plusplus?unsub=mysql@(protected) --Boundary-00 (See http://ary-00.ora-code.com)=_XCfwFWYICHFb9JZ--
|
|
 |