Make PublicKey decoding lazy inside WASM, since PublicKey in WASM is used mostly for comparison operations (==), and comparison can be performed without decoding (see #5038 for details). This givess approximatelly 400tps increase for single peer (from ~2450 to ~2850).
Context
Fixes #5038
Solution
Make
PublicKey
decoding lazy inside WASM, sincePublicKey
in WASM is used mostly for comparison operations (==
), and comparison can be performed without decoding (see #5038 for details). This givess approximatelly 400tps increase for single peer (from ~2450 to ~2850).Review notes (optional)
Checklist
CONTRIBUTING.md
.