
On Tue, Feb 2, 2010 at 10:41 AM, Joel de Guzman <joel@boost-consulting.com> wrote:
On 2/2/2010 5:43 PM, edouard@fausse.info wrote:
[snip]
Then again I want to insist I'm new to Spirit and just wanted to give it a shot and see if I could quickly leverage it. It is my current conclusion that for my specific problem MSM might be best suited, but then again I just wanted to allocate one day for this mini-benchmark and all I can say is that it will take more than one day to tell, day I don't have.
Understood. Well, if you have more time and want to give it another shot, then we're here if you need help.
I have used spirit v1 for SMTP protocol and MIME parsings and it worked very well. I wish I could contribute it to boost at the time, unfortunately I couldn't :(. It wasn't the fastest because of thread_sepecific_ptr's on spirit v1 grammars. Spirit v2 on the other hand is completely awesome, but I never got to do something similar anymore. How much I desired locals as implemented in spirit v2 at that time :). w.r.t partial reads. The easiest and with very good performance in a line-based protocol is just to parse line by line and keep context of what has already been parsed successfully. As long as you don't start parsing again for each byte you receive, the performance is very good. I have doubts that using coroutines would be faster than reparsing a few bytes again.
Regards, -- Joel de Guzman http://www.boostpro.com http://spirit.sf.net http://www.facebook.com/djowel
Meet me at BoostCon http://www.boostcon.com/home http://www.facebook.com/boostcon
[snip] -- Felipe Magno de Almeida