× 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 1/4/2013 4:37 AM, John McKay wrote:

I would also reduce the number of jumps in the program, i.e. reduce the
number of functions / subroutines, put more into one, it's messy, but
should gain some speed. Keep the most frequently used functions /
subroutines closer to the body of the program.


John, I don't think those are really relevant any more. That would be significantly sacrificing programmer efficiency to gain tiny and possibly non-existent improvements in run-time efficiency.

The time to make a bound call is extremely small. The Integrated Language Environment has been optimized to make it possible to write an application with many calls to little functions rather than having lots of code in larger functions.

I don't think that putting your functions or subroutines in particular locations in the source code would affect runtime performance in any noticeable way, or maybe even at all. I suspect that system might place the code into the final module in a different order from the way it was coded in the source file.

Here's my RPG Cafe blog post called "Performance Tip":

https://www.ibm.com/developerworks/mydeveloperworks/blogs/b542d3ac-0785-4b6f-8e53-f72051460822/entry/performance_tip?lang=en


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.