From: "Dan Skomsky, PSTI" <[email protected]>
Sent: Monday, 16 January 2012 11:49 PM

One Assembler trick I have seen in speeding up scanning loops was to use a
CLI instruction to check the first byte of a string and then only doing the
CLC/CLCL if the CLI matches.  This trick even works if doing a binary
search.

Marginal savings, I think, compared to EX/CLC or CLCL,
for the reason that both CLC and CLCL give up after examining the
first character, should they be unequal.

Might be more fruitful to compare length of the key with that of an element 
first,
and then carrrying out the compare should those lengths be equal.

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply via email to