Optimize str::unsafe::slice_bytes

7a6860b
Opened by Brian Anderson at 2012-03-16 00:11:10

This function is used all over the str module. It should be compile to a malloc + memcpy, but currently it uses vec::slice, which is copies elements one at a time calling take glue on each.