× 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.



cool!  Thanks.  

-----Original Message-----
From: Scott Klement [mailto:klemscot@xxxxxxxxxxxx]
Sent: Thursday, May 29, 2003 6:04 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: Complier is not recognize CALLP with procptr array



On Thu, 29 May 2003, Lim Hock-Chai wrote:
>
> Question:  If those procedures are all in-line procedures.  Would this
> dynamic call cause performance issue?
>

To me, a dynamic call is one where the address of the procedure isn't
known when the you call it the first time.  For example, when you call a
separate program, the library & object name are used to search the
system for the program.   Then, the program might have to be activated.
Finally, you can get the address of the code, and run it.  (This is, of
course, all done for you under the covers)

Whereas, in your case, the procedure was loaded when the program was
loaded, since it's inside the program itself.   The address is already
known (since that's what you're using to call it!) so it doesn't have to do
any kind of searching....  it just runs the code at that address in
memory.

So... I would not consider what you're doing a dynamic call.  It should
perform exactly the same as calling the procedure directly.   The only
extra time would be the time it takes to copy the pointer from the
data structure to the pointer in your prototype.   But, the time it takes
to copy 16 bytes is insignificant, even on older, slower, computers.

_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.