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



On 2/12/2013 2:09 AM, D*B wrote:
calling a programm (that's doing nothing) 100.000 times and comparing the time it uses, setting LR or not, using another ActGrp, bound call or system call sounds nice and tells (nearly) nothing. All numbers are dominated by caching effects and the startup effort of real world programms is negotiated. The last consequence of this approach often is: monolithic programms are best, every call is overhead!
In real world you would have to measure the influence on runtime and performance of using one or another method of calling other parts of code. And comparing well modularized applications with the monolithic versions, the modular style will beat the monolithic, regardless which kind of call operaton one is using. The main factor for performance and scalability is, to concentrate on the critical parts of an application, the next important thing is caching, then parallelisation (often the key for speed).

Hi Dieter,
I never intended a simplistic benchmark to be a scientific exploration
of the internal mechanism of transferring control to another block of
code. The OP expressed some surprise that the standard advice was that
CALLP was that much faster than CALL. And it is. The conclusion that
all calls are overhead is true enough, but CALLP's overhead is orders of
magnitude less than CALL's.

Your last sentence is the most interesting to me, and I totally agree
that thinking in a modular fashion will result in smallish blocks of
code that have low coupling. In the midrange world, this readily
translates into subprocedures.

--buck

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.