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



Marvin,

You didn't reference it, so I have to ask about the most obvious
performance tax - Are you opening and closing these programs every time
you call them, or are they left open at exit?

Leaving the programs open at exit will spare you the cost of program
initialization 26000 times.

jte

--
John Earl
The PowerTech Group, Inc.
Direct: 253-479-1408
Mobile: 206-669-3336

www.powertech.com


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Marvin Radding
Sent: Wednesday, November 12, 2008 10:10 AM
To: midrange-l@xxxxxxxxxxxx
Subject: Question about reducing program start overhead

All,

I am assigned a project to attempt to improve the running
time for the nightly process. So here is the situation: One
program reviews over 26,000 records nightly by calling a
pricing program that calls over 20 different RPG programs to
determine a price for the customer. And this pricing program
is called again to provide the customer with an alternate
price should they choose to avoid the price increase. This
program requires several hours each night to review these records.

My question has to do with a technique that I saw many years
ago, when computers were slower. That technique was an
attempt to make programs start faster by issuing an OPNDBF
for every file that would be needed. I think the programmer
thought that if the operating system already had the file
open, when the RPG program attempted to open the file, there
would be less overhead.

My question is, would issuing an OPNDBF for a file that is
not flagged SHARE(*YES) reduce the overhead to start RPG
programs? Would I need to make the files shared reduce the overhead?

Thanks ahead of time.

Marvin

--
This is the Midrange Systems Technical Discussion
(MIDRANGE-L) mailing list To post a message email:
MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change
list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting,
please take a moment to review the archives at
http://archive.midrange.com/midrange-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.