Ned Konz wrote: > The single biggest chunk of time is spent in the binary search routine > in replaceNextLargerWith(). I found that I could make it a tiny bit > faster by doing a single <=> and then using equal? to compare with > literal -1 and 1. Is equal? really faster than == ? I guess "value == nil", "not value" or "unless value" is faster than calling "value.nil?". The latter is a method call, the former is not. << is probably slightly faster than push for one value. But I don't think that both will speedup the program by seconds. Regards, Michael -- Michael Neumann merlin.zwo InfoDesign GmbH http://www.merlin-zwo.de