cosmos-sdk/x/upgrade
Emmanuel T Odeke d0f64dff2c
perf: avoid unnecessary byteslice->string before fmt %s verb (#10364)
fmt.Printf or fmt.Sprintf already know how to convert a
byteslice into a string when building the output; we shouldn't
incur the unnecessary string(byteslice) conversion.
Using Bencher, we can see improvements such as
https://dashboard.github.orijtech.com/benchmark/3245b8e4bbbd44a597480319aaa4b9fe
which in independent experiments show:

* time/op (ns/op)
FormatIt-8	1.2µs ± 2%	1.1µs ± 10%	-11.77%	(p=0.000 n=10+9)

* speed (MB/s)
FormatIt-8	0.71GB/s ± 2%	0.80GB/s ± 9%	+13.59%	(p=0.000 n=10+9)

* allocs/op (B/op)
FormatIt-8	2.0kB ± 0%	1.1kB ± 0%	-45.62%	(p=0.000 n=10+10)

* allocs/op (count/op)
FormatIt-8	11 ± 0%	        9.0 ± 0%	-18.18%	(p=0.000 n=10+10)

Fixes #10363
2021-10-14 08:53:38 +00:00
..
client perf: avoid unnecessary byteslice->string before fmt %s verb (#10364) 2021-10-14 08:53:38 +00:00
exported x/upgrade: protocol version tracking (#8897) 2021-04-02 07:11:58 -07:00
keeper refactor: move from io/ioutil to io and os package (#10341) 2021-10-13 07:38:22 +00:00
migrations/v038 refactor: Rename x/{mod}/legacy to x/{mod}/migrations (#9628) 2021-07-05 14:55:51 +00:00
spec docs: client docs for upgrade module (#10320) 2021-10-12 11:56:40 +00:00
types refactor: move from io/ioutil to io and os package (#10341) 2021-10-13 07:38:22 +00:00
abci.go feat: file watcher for cosmovisor (#8590) 2021-08-11 15:03:48 +00:00
abci_test.go feat(tests): add simapp setup helpers (#10020) 2021-09-15 17:18:01 -04:00
doc.go x/upgrade: remove support for time based upgrades (#8849) 2021-03-14 01:03:01 +00:00
handler.go x/upgrade: remove alias.go usage (#6382) 2020-06-10 18:54:15 +00:00
module.go feat!: remove legacy handler (#9650) 2021-07-19 14:49:42 +00:00