Closed tmcli closed 5 years ago
Remove an unnecessary array copy. Improves performance from O(n^2) to O(n).
This assumes that each byte corresponds 1-1 to a rune.
Thanks, @tmcli! Very nice catch.
Remove an unnecessary array copy. Improves performance from O(n^2) to O(n).
This assumes that each byte corresponds 1-1 to a rune.