|
James Kilgore wrote: >BTW I have never understood the expensive use of MOVEA to turn >indicators off or on when you can't get any clearer then an explicit >SETOF or SETON. In an earlier post abount scanning for indicator >useage, you would never find the indicators being turned off/on with a >MOVEA. > Have you ever run a performance comparison on multiple SETOFs versus a single MOVEA? A test in RPG IV setting off a block of indicators 50,000 times resulted in the following times: SETOF 20,21,22 SETOFF 23,24,25 ....... 16 seconds MOVE *OFF *IN20, MOVE *OFF *IN20....... 16 seconds EVAL *IN20 = *OFF, EVAL *IN21 = *OFF... 16 seconds MOVEA OFF20 (named constant) *IN,20.... 9 seconds The MOVEA is the most efficient method to turn off a block of indicators. Of course my first test of 500 times and my second test of 5,000 times were not enough to detect the difference. Charlie Massoglia, Massoglia Technical Consulting, Inc. PO Box 1065, Okemos, MI 48854, USA 517-676-9700 Fax: 517-676-1006 EMAIL: cmassoglia@voyager.net * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the Midrange System Mailing List! To submit a new message, * * send your mail to "MIDRANGE-L@midrange.com". To unsubscribe from * * this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe MIDRANGE-L' in the body of your message. Questions * * should be directed to the list owner / operator: david@midrange.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.