erigon-pulse/txpool
Håvard Anda Estensen 9d5f02ce76
Use hex package to convert bytes to string (#761)
From my
[benchmarks](https://github.com/estensen/benchmarks/blob/master/encoding/encoding.go)
it's a lot faster. Especially for few bytes.

```

cpu: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
BenchmarkByteToHex/encode_bytes_to_hex_string_with_fmt.Sprintf_for_1_byte-12         	12689306	        89.64 ns/op	      26 B/op	       2 allocs/op
BenchmarkByteToHex/encode_bytes_to_hex_string_with_hex.EncodeToString_for_1_byte-12  	80529291	        14.74 ns/op	       2 B/op	       1 allocs/op
BenchmarkByteToHex/encode_bytes_to_hex_string_with_fmt.Sprintf_for_5_bytes-12        	10836607	       108.2 ns/op	      40 B/op	       2 allocs/op
BenchmarkByteToHex/encode_bytes_to_hex_string_with_hex.EncodeToString_for_5_bytes-12 	42891154	        28.82 ns/op	      16 B/op	       1 allocs/op
BenchmarkByteToHex/encode_bytes_to_hex_string_with_fmt.Sprintf_for_10_bytes-12       	 9706875	       119.8 ns/op	      48 B/op	       2 allocs/op
BenchmarkByteToHex/encode_bytes_to_hex_string_with_hex.EncodeToString_for_10_bytes-12         	31689613	        33.88 ns/op	      24 B/op	       1 allocs/op
BenchmarkByteToHex/encode_bytes_to_hex_string_with_fmt.Sprintf_for_50_bytes-12                	 5202006	       210.4 ns/op	     136 B/op	       2 allocs/op
BenchmarkByteToHex/encode_bytes_to_hex_string_with_hex.EncodeToString_for_50_bytes-12         	10616301	       109.5 ns/op	     224 B/op	       2 allocs/op
BenchmarkByteToHex/encode_bytes_to_hex_string_with_fmt.Sprintf_for_100_bytes-12               	 5614594	       210.9 ns/op	     136 B/op	       2 allocs/op
BenchmarkByteToHex/encode_bytes_to_hex_string_with_hex.EncodeToString_for_100_bytes-12        	10426776	       108.6 ns/op	     224 B/op	       2 allocs/op
```
2022-12-04 16:17:37 +07:00
..
testdata ErigonLib: move types to own package (#413) 2022-04-11 10:02:44 +07:00
txpooluitl WithTablessCfg -> WithTableCfg (#601) 2022-08-24 11:02:47 +02:00
fetch_test.go Update interfaces (#733) 2022-11-11 16:36:22 +01:00
fetch.go Fieldalign (#695) 2022-10-21 15:31:23 +07:00
mocks_test.go Add withdrawal operations to Engine API (#734) 2022-12-01 08:32:55 +01:00
pool_fuzz_test.go Update interfaces (#733) 2022-11-11 16:36:22 +01:00
pool_test.go Update interfaces (#733) 2022-11-11 16:36:22 +01:00
pool.go Use hex package to convert bytes to string (#761) 2022-12-04 16:17:37 +07:00
send.go Fieldalign (#695) 2022-10-21 15:31:23 +07:00
test_util.go Fieldalign (#695) 2022-10-21 15:31:23 +07:00
txpool_grpc_server.go txpool to consider available gas in Best call (#755) 2022-12-02 15:32:56 +00:00