Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Optimize frame encodeValue unencodeValue, replace with more efficient version #58
Using strings.Replace multi times in "encodeValue" and "unencodeValue" function is low efficience, strings.NewReplacer is the more efficient version, here is the benchmark result.
you can see the std lib code, strings/replace.go https://golang.org/src/strings/replace.go#L315: