From: ts Date: 2001-02-28T03:08:05+09:00 Subject: [ruby-talk:11705] Re: Array bugs? >>>>> "C" == Christoph Rippel writes: C> Your version (note you have Thread C> protection) Yes this is why I think that it will be slow C> New Id-Pair encoding scheme C> $ time ruby UntangleNew.rb [...] C> real 0m2.033s C> user 0m1.692s C> sys 0m0.240s You're right it's faster pigeon% time ruby b.rb true false [3] [1, 2, 3, [...], [...]] [1, 2, [...], [1, 2, 3, [...], [...]]] true true false real 0m0.870s user 0m0.570s sys 0m0.020s pigeon% but I must verify because I've made very quickly the modification :-) For Array#<=> can I do the samething than Array#== because actually it send an error message when it find a recursive array rb_raise(rb_eArgError, "tried to compare recursive array"); Guy Decoux