
Andrey Semashev wrote:
On 03/11/2010 11:28 AM, Roland Bock wrote:
Regarding the use of Spirit within Boost.Log: If I get it right, spirit::karma supposed to be extremely fast in serializing. In another thread I read that one of the performance issues is the serialization of DateTime (http://lists.boost.org/Archives/boost/2010/03/162905.php).
Would it make sense to use karma here to speed things up?
Yes, one of my thoughts was to rework Boost.DateTime IO to employ Boost.Spirit. Another thing that ought to be done is to parse format strings only once, during the facet initialization. And the third thing is to move all that code into the compiled binary of Boost.DateTime. It really adds quite a bit to users' binary size now.
OK, sounds very nice. I noticed earlier that Boost.DateTime's parsing is pretty slow in comparison to Boost.Spirit. So all of this make very much sense to me.