From: khaines@... Date: 2007-12-30T01:30:23+09:00 Subject: Re: multibyte strings & bucket-of-bytes efficiency under 1.9.0 On Sat, 29 Dec 2007, David Flanagan wrote: > I would expect the speed to go back up if you call force_encoding(nil) on the > string before calling slice! That allows you to treat it as unencoded bytes. > > Only do this, though if you can be confident that you won't slice any > multi-byte characters down the middle, since that would leave you with > corrupt data. It's still slower than a seven year itch when I do that. It's really quite an impressive difference in performance between 1.8 and 1.9, and not in a warm fuzzy way. Kirk Haines