Probably because you use the less optimized way of converting the slice with $. 
This one does not reallocate the string but creates a new one every time.

Reply via email to