Re: [HAPI-devel] Parser performance

2013-06-04 Thread James Agnew
Hi John, Try refactoring so that the PipeParser is reused between calls. The first time a PipeParser encounters a given message type, it spends a bunch of time (although certainly not 2.5 seconds on any of our systems here) building up an internal in-memory representation of the message structure

[HAPI-devel] Parser performance

2013-06-04 Thread John Ruggentaler
I have a method in my code that takes a string and parses it using HAPI and returns the message. I timed the method and it takes almost 2.5 seconds. I am using HAPI version 2.1. Any idea how to speed up the parsing or what is causing it to be so slow? I don't think it was this slow in version 1.0.