From: Christian Neukirchen Date: 2006-09-03T23:39:39+09:00 Subject: Re: Integer to byte string - Speed improvements "John Johnson" writes: > As far as it being faster, dunno, probably. Here's the benchmark: > irb(main):041:0> Process.times { > s=Marshal.dump(0xCC8080808080808080808080808080808080808080808080808080808080AA) > } > > => # I at first thought to have missed something, but Process.times doesn't do what you think it does: irb(main):005:0> Process.times { p "foo" } => # The block doesn't even get called. Returns a +Tms+ structure (see +Struct::Tms+ on page 388) that contains user and system CPU times for this process. ^^^^^^^^^^^^^^^^ > JJ -- Christian Neukirchen http://chneukirchen.org