chore: improve titleCasedName performance #1692

Closed
appleboy wants to merge 1 commits from performance into master
Member
$ go test -bench="TitleCasedName" ./names/...
goos: darwin
goarch: amd64
pkg: xorm.io/xorm/names
BenchmarkTitleCasedNameOld-4      376286              3272 ns/op            2248 B/op          9 allocs/op
BenchmarkTitleCasedNameNew-4     1567888               763 ns/op             224 B/op          1 allocs/op
PASS
ok      xorm.io/xorm/names      5.394s

Signed-off-by: Bo-Yi Wu appleboy.tw@gmail.com

``` $ go test -bench="TitleCasedName" ./names/... goos: darwin goarch: amd64 pkg: xorm.io/xorm/names BenchmarkTitleCasedNameOld-4 376286 3272 ns/op 2248 B/op 9 allocs/op BenchmarkTitleCasedNameNew-4 1567888 763 ns/op 224 B/op 1 allocs/op PASS ok xorm.io/xorm/names 5.394s ``` Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
appleboy added 1 commit 2020-05-22 04:53:19 +00:00
chore: improve titleCasedName performance
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
1360686907
appleboy closed this pull request 2020-05-22 07:18:17 +00:00
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing

Pull request closed

Sign in to join this conversation.
No description provided.