Hi Laurent,
The main reason for this is that this method assigns a new sequential ID to
each ACK message it generates, and it uses a file to keep track of that
sequence. That file is read and written on each message, so it is a bit
slower than you might think.
The next release of HAPI has a great new implementation of this, oddly
enough. Christian Ohr has written a pluggable ID generator module, which
can use "hi-lo" files which are only occasionally read, as well as memory
only and GUID type implementations which are faster still. Unfortunately
that release is not yet out, and probably won't be for at least a few
months.
Cheers,
James
On Thu, Nov 8, 2012 at 9:52 AM, LDH <l...@360fresh.com> wrote:
>
> Is there a reason why creating an ACK is so slow? I am calling
> DefaultApplication.makeACK(_Msh);
> This takes almost as long as the parsing of the full message coming in
> which seems counter intuitive.
>
> I am on V1.2.
>
>
> --
>
> ------------------------------
> *Laurent (Harry) Hasson*
> Co-Founder, 360Fresh.com
>
> This email and any attachments thereto may contain private, confidential,
> and privileged material for the sole use of the intended recipient. Any
> review, copying, or distribution of this email (or any attachments thereto)
> by others is strictly prohibited. If you are not the intended recipient,
> please contact the sender immediately and permanently delete the original
> and any copies of this email and any attachments thereto.
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_nov
> _______________________________________________
> Hl7api-devel mailing list
> Hl7api-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel