From: Christian O. <chr...@gm...> - 2017-06-29 18:37:47
|
Hi Mike, check if http://hl7api.sourceforge.net/base/apidocs/ca/uhn/hl7v2/preparser/PreParser.html would help in your case, when you just need to extract a single field. cheers Christian Am 29.06.2017 um 03:17 schrieb Mike Mills: > Hi, > > Are the any efforts being made to improve the performance of parsing > an hl7 message? > > I am considering dropping parsing of messages using hapi because of > the CPU load and memory requirements. > > It seems like Hapi parses like a DOM parser as it goes though the > entire message. > > It would be good if the message was lazily parsed so that no parsing > occurs until a teaser.get call is made, or an accessor called on the > concrete message object returned from parse(). When the terser path is > executed only the required segment/group/field/sub fields are > processed to retrieve the desired value. > > That way, if we wanted just the MSH9-2 the copy expense of parsing an > entire message is not required. > > My initial performance testing indicates that the JVM dropped from 10% > CPU usage with Hapi to 3% CPU usage when using string.split(). > > Are there efforts being made to address the performance of Hapi? > > Kind regards. > > Mike > > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel |