Closed adriancable closed 2 years ago
Merging #201 (41b63af) into master (b74938d) will increase coverage by
0.08%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #201 +/- ##
==========================================
+ Coverage 75.16% 75.24% +0.08%
==========================================
Files 17 17
Lines 1224 1228 +4
==========================================
+ Hits 920 924 +4
Misses 208 208
Partials 96 96
Flag | Coverage Δ | |
---|---|---|
go | 75.24% <100.00%> (+0.08%) |
:arrow_up: |
wasm | 74.75% <100.00%> (+0.08%) |
:arrow_up: |
Flags with carried forward coverage won't be shown. Click here to find out more.
Impacted Files | Coverage Δ | |
---|---|---|
key_derivation.go | 92.68% <100.00%> (+0.79%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update b74938d...41b63af. Read the comment docs.
ez
I don't remember why this is faster, and it could probably be optimized further, but thanks for pushing this through.
On big endian systems you can do a couple of unsafe pointer casts to uint32 in the middle of the counter array instead. This would reduce op count by a further 2.5X. But at this point you are nibbling at the edges because the CPU footprint of this function is already very small now.
Before
After
This updates a proposed code change from @kixelated back in 2019.