Re: Integer to byte string - Speed improvements



Phrogz wrote
I forgot to add - I'd also be interested in seeing a golf tournament on
the two methods. Of course whitespace and variable names could be
changed, but I'm interested in more terse, alternative methods of
calculating the same information.

v = 0x217962755220666f207463657073612074656577732061207369206d756e676942
puts [v.to_s(16)].pack('H*').reverse

terse enough? :)

cheers

Simon

.