From: kamphausen@... (SKa) Date: 2001-08-27T19:16:58+09:00 Subject: [ruby-talk:20424] Re: Performance of Substrings > Have you tried with unpack ? > > def iso_unformat(t) > t.size == 8 ? t.unpack("a4a2a2") : t.unpack("a4a2a2a2a2a2") > end Much better :) (though still slow in a way) Thanks Guy. stefan