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



Greg,

>Anyhow, the program is down to a barely acceptible 2 hours 20 minutes
>now, whereas it would have run well over 24 with all those file
openings
>and closings, so I feel better, though I can't help thinking the
>performance could be tweaked further.  It used to run in a half an hour
>before we added these new fields.

As far as further performance benefits go, if this is a 'control' type
of file, you might consider reading all the records into an array
(defined in the procedure using the STATIC keyword) the first time the
procedure is called, and then reading data from the array (using the
same key) on each subsequent call, thus removing the file I/O for most
procedure calls. I've used that technique to drastically reduce
subprocedure call time and increase performance.

Of course, if the file is very large, this might not make sense. And the
procedure would need to be in a service program that uses a named
activation group, so the service program (and the array itself) remain
in memory between calls.

Just a thought.

Rory


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.