Best array population & access optimization

Dar Scott dsc at swcp.com
Fri Jun 20 18:12:00 EDT 2003


On Friday, June 20, 2003, at 04:34 PM, Mark Brownell wrote:

> I'm definitely interested in binaryEncode/binaryDecode for many parts 
> of this in Rev. My own hex-converter loop is a real dog; I'm sure I'll 
> discover some speed improvements there. I was reading about it last 
> night.

Revolution has a base converter function baseConvert().  It takes a 
numeral (string of bits or digits or whatever) in a base an puts it 
into a 32-bit value.  It then takes that 32-bit value and converts that 
to a numeral in the second base.  You can get a negative number as a 
result if the msb of the 32-bit value is 1 so there is some indication 
that the 32-bit value is signed, but I don't think that is consistent.

Which reminds me.  Are you supposed to have all those signed numbers in 
Blowfish?

> The guy that thought this S-box, bit-shift stuff up has got to be a 
> full-blown max-zoomed dweeb.

Well, fortunately there are no bit-shifts in Blowfish, just figuring 
out how to think 4 chars and 32-bit numbers.

Dar Scott




More information about the use-livecode mailing list