I have something that works but the timing is just tooooooo slow. I have a subroutine that communications with remote hosts. It simply passes a one line string as a request and receives back from 1 to 100+ lines of text in return.
As this is done as a subroutine I am returning the total response as one string. Most likely this is where the sluggishness occurs.
In my test the host program is logging just under three seconds to process the request and return about 12K bytes (100 lines of 115 bytes).
However, when timing the snippet below, it takes over 12 seconds to complete. That's 8 seconds (and that's an eternity) to respond.
My guess is that either the method of concatenating the returned records to the string $RECIN is slower than fudge in Alaska.
I'd bet the bigger problem is network or buffer delays. If this is a TCP/IP sort of connect, set autoflush on the CXIBIO handle. If this is communicating with some sort of character device (I remember you were asking about serial communication a while back) you might want to use sysread on the filehandle instead of the <> operator, as its less likely to block. You'll have to do your own line processing and such, but...
--
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

