ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

DOW x <= y is 3 times faster than using for x = number downto 1

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Re: DOW x <= y is 3 times faster than using for x = number downto 1

    Originally posted by MichaelCatalani View Post
    Never multiply by by 2, 4, 8, 16, etc. Shift the register left 1, 2, 3, 4, etc bytes.
    ... not by bytes but by bits ... just to be more Catholic than the Pope
    Sven

    The best way to prove your knowledge is to share it ...

    Comment


    • #32
      Re: DOW x <= y is 3 times faster than using for x = number downto 1

      DOW x <= y
      does not include an increment/decrement.

      FOR
      does.

      Are the performance timings inclusive of the
      y+=1
      or
      x-=1
      codes?
      â??No bird soars too high if he soars with his own wingsâ?? â?? William Blake

      Comment


      • #33
        Re: DOW x <= y is 3 times faster than using for x = number downto 1

        Originally posted by sms_mitschs View Post
        ... not by bytes but by bits ... just to be more Catholic than the Pope
        haha, yea I'm old enough to remember the fun stuff, and old enough to forget the details.
        Michael Catalani
        IS Director, eCommerce & Web Development
        Acceptance Insurance Corporation
        www.AcceptanceInsurance.com
        www.ProvatoSys.com

        Comment

        Working...
        X