aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorFelix Lange <fjl@users.noreply.github.com>2018-06-04 15:32:32 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-06-04 15:32:32 +0800
commit3f33a7c8ceeefd769a68bbcc2ed3e4ce74ddaef8 (patch)
tree4a597f8066be7dbf50f0d73763d29e55fa685d2c /core
parentc8dcb9584e1ea77c9b967d2bec5d167c7df410f0 (diff)
downloadgo-tangerine-3f33a7c8ceeefd769a68bbcc2ed3e4ce74ddaef8.tar.gz
go-tangerine-3f33a7c8ceeefd769a68bbcc2ed3e4ce74ddaef8.tar.zst
go-tangerine-3f33a7c8ceeefd769a68bbcc2ed3e4ce74ddaef8.zip
consensus/ethash: reduce keccak hash allocations (#16857)
Use Read instead of Sum to avoid internal allocations and copying the state. name old time/op new time/op delta CacheGeneration-8 764ms ± 1% 579ms ± 1% -24.22% (p=0.000 n=20+17) SmallDatasetGeneration-8 75.2ms ±12% 60.6ms ±10% -19.37% (p=0.000 n=20+20) HashimotoLight-8 1.58ms ±11% 1.55ms ± 8% ~ (p=0.322 n=20+19) HashimotoFullSmall-8 4.90µs ± 1% 4.88µs ± 1% -0.31% (p=0.013 n=19+18)
Diffstat (limited to 'core')
0 files changed, 0 insertions, 0 deletions