× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Craig,

On 1/26/2011 7:08 AM, Craig Jacobsen wrote:
Yes, I'm using HTTPAPI and FTPAPI to accomplish the label printing.
Thank you and you deserve a lot of credit for that!

Hmmm... I wasn't fishing for credit, Craig. I was merely pointing out that the IFS APIs are part of IBM i, they are not 'Scott's Stuff'. FTPAPI and HTTPAPI are my stuff... are you having performance problems with them?

What if it is the part from #4 down that is slow?
How can I make that part faster?

Please remember that the following quotation is the sum total of knowledge that I have about step #4:

4) The file is translated to EBCDIC, parsed, some control characters
are put in depending on ZPL,EPL, and then translated back to ASCII

This says that you're doing three things:

1) Translating to EBCDIC, initially, then translating back.

In my experience, this takes a millisecond or so... can't account for a 10 second increase in time (unless you're doing something wrong?) So unless your benchmarking points to the ASCII/EBCDIC translation as a problem area, I'd do nothing here.

2) 'parsed'

Yeah. I know exactly one word about this part of the program. Are you doing this parsing efficiently? Or is it taking a long time? Do you even know how long it's taking?

3) inserted some ZPL or EPL control characters.

... are you doing that efficiently? Or is it taking a long time? Are you doing something that could be optmized (such as reading the file one byte at a time) or not?

Do you see my problem? I know nothing about your routines. If we worked together, and you asked me for help with this, I'd start by inserting code to determine where the slowdown is -- the same thing I recommended in my earlier message to you! Once I determined where the problem is, I'd read the code and think about how to optimize it.

But, in this case, I can't read the code, and you haven't identified the problem spot... How much further can I take this?

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.