Closed arvidn closed 4 months ago
Totals | |
---|---|
Change from base Build 8007877860: | 0.05% |
Covered Lines: | 5858 |
Relevant Lines: | 6208 |
TODO:
Be sure to do a test for hashing the two values 01 00
, ie. the one-byte but non-minimal 0 integer value. We want to make sure it's different from 01
, ie. the minimal 0 integer value.
Remarkable speed-up!
This was @Quexington 's suggestion.
An earlier version of this description had benchmarks numbers that were invalid. It has been updated with correct benchmarks.
change
For
op_sha256()
, use pre-calculated SHA-256 hashes for common cases. Specifically(sha256 1 <op-code>)
which is a common case when computing the tree hash of programs, e.g. puzzles.This gives a modest speed-up on most blocks.
benchmarks
These are benchmarks in
chia_rs
, as those are higher level and running real block generators.All benchmarks: