• Subject: Re: Named indicators (was DOW vs DOU)
  • From: Neil Palmer <npalmer@xxxxxxxxxxx>
  • Date: Tue, 27 May 1997 22:05:00 -0400
  • Organization: NxTrend Technology - Canada

Charlie Massoglia wrote:
> 
> 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,

Not that you would have a block of indicators in nicely structured code,
but again with MOVEA for setting on/off blocks of indicators aren't you
sacrificing readability and making it harder to scan/spot indicators
used in the source ?  If I remember correctly, they don't even show up
in the cross reference listing when you compile the program.
-- 
... Neil Palmer                                      AS/400~~~~~      
... NxTrend Technology - Canada      ____________          ___  ~     
... Markham,  Ontario,  Canada       |OOOOOOOOOO| ________  o|__||=   
... Phone: (905) 731-9000 x238       |__________|_|______|_|______)   
... url:http://www.nxtrend.com        oo      oo   oo  oo   OOOo=o\   
... mailto:npalmer@nxtrend.com     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* 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 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.