killerswan/rust — comment on commit faa513b1f616fd831ca7ba2d3a8ad987f83d4a16
File: src/libcore/str.rs line 937
By killerswan:

Substr is working with character ranges now, so this was broken with byte lengths. While I'm thinking about it I'll change this use a byte slice, instead.

The real slowness is likely to come from all the extra copying that str::replace does, and the fact that str::find doesn't use Boyer-Moore, though.