On Fri, Jan 13, 2012 at 1:05 AM, Hall, Keven <[email protected]> wrote:

> If you're looking to reduce CPU usage you might want to optimize the TRT
> the heck out of the equation.  Talk about expensive!  [augment with
> imagined or actual sound of cash register "cah-ching" sound for added
> emphasis/effect]

Ok...  but how?  Would a loop stepping over the max 8 bytes be wiser
to find the first blank? Another idea I had was to step a 2-byte CLC
with '* ' over the string, but the complexity and the end spoils the
fun.

Guess I never really measured TRT.   A variation of this code is used
to search items in a linked list. I obviously moved the TRT out of the
loop and that might have helped make it faster.

Rob

Reply via email to