I am by no means an expert but based on my mental model, the branch approach
is going to be slower.

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of Binyamin Dissen
Sent: Sunday, February 16, 2014 1:11 AM
To: [email protected]
Subject: Performance question - adding

Say I have two words,

             CURRENT   DS     F
             SUM      DS   F

I want to add CURRENT to SUM, but most of the time CURRENT will be zero.
CURRENT and SUM are not adjacent (different data lines)

Which is best

                  L     Rx,CURRENT
                  A     Rx,SUM
                  ST    Rx,SUM


or

                  L     Rx,CURRENT
                  LTR   Rx,Rx
                   JZ    SKIP
                   A     Rx,SUM
                   ST    Rx,SUM
       SKIP    DS    0H

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to