cosmos-sdk/client
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
..
config refactor: move from io/ioutil to io and os package (#10341) 2021-10-13 07:38:22 +00:00
debug refactor(client): add client/Context.Codec and deprecate JSONCodec (#9498) 2021-06-11 11:49:39 +00:00
docs feat!: Add bech32 prefix to authkeeper (#9759) 2021-08-25 11:17:18 +00:00
flags fix: make chain-id flag not strictly required for tx commands (#10184) 2021-09-22 08:38:15 +00:00
grpc feat: Introduce Cosmos Scalars (#9933) 2021-09-21 09:46:29 +00:00
input client/keys: make add command's output parseable (#6603) 2020-07-05 13:22:49 +02:00
keys perf: avoid unnecessary byteslice->string before fmt %s verb (#10364) 2021-10-14 08:53:38 +00:00
rpc feat!: remove legacy REST (#9594) 2021-07-06 10:04:54 +00:00
tx refactor!: Keyring migration (#9695) 2021-09-20 12:02:15 +00:00
account_retriever.go Replace tmcrypto.PubKey by our own cryptotypes.PubKey (#7419) 2020-11-09 16:01:43 +00:00
broadcast.go client: update client error handling to use tx hash from tendermint (#9462) 2021-06-07 02:55:08 -04:00
broadcast_test.go tm: update to latest (#7376) 2020-09-23 13:44:40 +00:00
cmd.go fix: --home flag parsing (#10226) 2021-09-30 12:01:56 +00:00
cmd_test.go Limit context background (#8093) 2021-02-03 09:47:25 +00:00
context.go refactor: Implementing sigs.k8s.io YAML to remove .proto yaml annotations (#9780) 2021-09-24 14:37:34 +00:00
context_test.go feat: simd runs in-process testnet by default (#9246) 2021-06-29 10:41:55 +00:00
grpc_query.go fix!: remove grpc query routing through tendermint (#10045) 2021-09-30 08:17:33 +00:00
grpc_query_test.go feat: simd runs in-process testnet by default (#9246) 2021-06-29 10:41:55 +00:00
query.go fix!: update ABCI query to use request height (#9879) 2021-08-12 10:48:22 -04:00
query_test.go fix!: update ABCI query to use request height (#9879) 2021-08-12 10:48:22 -04:00
test_helpers.go Replace tmcrypto.PubKey by our own cryptotypes.PubKey (#7419) 2020-11-09 16:01:43 +00:00
tx_config.go feat: Add `SIGN_MODE_AMINO_AUX` handler (#10268) 2021-10-04 10:57:08 +00:00
utils.go Add client config subcommand to CLI (#8953) 2021-03-31 12:04:33 +02:00
utils_test.go client: fix Paginate's arguments validation (#6205) 2020-05-13 13:14:43 +00:00