9 Jul 07:08
Re: [test] RFC: speed up BOOST_CHECK by not formatting the check description if it isn't written anywhere
From: Gennadiy Rozental <rogeeff <at> gmail.com>
Subject: Re: [test] RFC: speed up BOOST_CHECK by not formatting the check description if it isn't written anywhere
Newsgroups: gmane.comp.lib.boost.devel
Date: 2008-07-09 05:08:56 GMT
Subject: Re: [test] RFC: speed up BOOST_CHECK by not formatting the check description if it isn't written anywhere
Newsgroups: gmane.comp.lib.boost.devel
Date: 2008-07-09 05:08:56 GMT
Ji <jpalecek <at> web.de> writes: > > Hello, > > I have a test that uses many BOOST_CHECKs (~ 10 thousands or so). Running that test is very slow and I have > noticed most of the time is spent by formatting the description string to be passed to check_impl, only to > be ignored, because I don't want to log successful checks (and they are successful). > > I have improved this by using some kind of expression template for this (called lazy_output). It works like this: Hi, Thanks you very much for the idea. I've implemented it a bit differently and extended to support manipulators. Also I've integrated it with UTF internals a bit more. Checked into svn in 47258. Regards, Gennadiy _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
RSS Feed