Old path: decode + scanEvery call decoded bech32 and scanned all nodes per signerGetSigners()bech32 decode ×NIsNodeKeys ×N×M
countActiveSignersCached decode, one map lookup per signer; repeats still countedsignerSignerAddressStringactiveNodeIndex slotcount++
signersIncludeHasSigned compares cached bytes instead of allocating addressesnon-empty decode ⇒ Equals is byte equalityundecodable signers skipped, as before
Proof of equivalenceRandomized parity test, regtest identical, replay 4.3% fasterstate =events =gas_used =