Commit Graph
3 Commits
Author SHA1 Message Date
lmittmann bc013bc42e all: prefer new(big.Int) over big.NewInt(0) (#25087)
minor performance improvement: `big.NewInt(0).Xxx` -> `new(big.Int).Xxx`
2022-06-14 15:09:48 +03:00
lmittmann 2954f40eac common/hexutil: improve performance of EncodeBig (#23780)
- use Text instead of fmt.Sprintf
- reduced allocs from 6 to 2
- improved speed
2021-10-21 11:43:23 +02:00
lmittmann 1cd5bf080e common: unify hex prefix check code (#19937) 2019-08-22 11:45:07 +02:00