News:

  • June 29, 2026, 11:52:32 AM

Login with username, password and session length

Author Topic: What is the fastest way to move indexed Unsigned Words?  (Read 27332 times)

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3612
  • Darth Ladder
Re: What is the fastest way to move indexed Unsigned Words?
« Reply #15 on: December 29, 2014, 03:21:47 PM »
Which changes had the most impact?
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: What is the fastest way to move indexed Unsigned Words?
« Reply #16 on: December 29, 2014, 08:44:25 PM »
The biggest difference was in getting rid of the indexed values in the compares in the inner loop. Instead I use 1 MATH with the indexed values, and then use the result in the compares.
There also used to be a compare at the top of the outer loop to check for valid data. I got rid of it, and used an ending value in the outer FOR that was calculated in another program block.
The other thing that helped was re-calculating the starting index of the inner FOR on the fly.
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com