Re: [HAPI-devel] hl7api SegmentFinder.java performance fix

2016-09-28 Thread Jens Villadsen
also sent it to the address on the website, [email protected], > but it bounced. > > Regards, Niels Harremoës > > > > *Fra:* Niels Ull Harremoës [mailto:[email protected]] > *Sendt:* 7. juni 2016 12:10 > *Til:* HAPI Devel List > *Emne:* [HAPI-dev

Re: [HAPI-devel] hl7api SegmentFinder.java performance fix

2016-09-28 Thread Niels Ull Harremoës
10 Til: HAPI Devel List Emne: [HAPI-devel] hl7api SegmentFinder.java performance fix I was profiling some of our code which uses HL7, and I noticed that we had a large number of calls to java.util.Pattern#compile. I tracked a number of them down to SegmentFinder#matches method. I would therefore s

[HAPI-devel] hl7api SegmentFinder.java performance fix

2016-06-07 Thread Niels Ull Harremoës
I was profiling some of our code which uses HL7, and I noticed that we had a large number of calls to java.util.Pattern#compile. I tracked a number of them down to SegmentFinder#matches method. I would therefore suggest the patch below, which cuts down the number of Pattern#compile calls from 4