aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-03 22:01:21 -0700
committerAdam Soltys <[email protected]>2026-09-03 22:01:21 -0700
commit45fe7005b578d36ad462a9adc77f261808c48d20 (patch)
treede4ba94c9541d6780a8837e0687c53e20c1e6790 /src/app.js
parente5b531f9b871125235da370c15f5de8646e68125 (diff)
downloadcoinosv3-45fe7005b578d36ad462a9adc77f261808c48d20.tar.gz
coinosv3-45fe7005b578d36ad462a9adc77f261808c48d20.zip
Ark key derivation gets memoized — the boot CPU hog. A profile of the first 9s after refresh showed ~800ms of secp256k1 (q0/mul/TJ) dominating the main thread; the source was _key(index) recomputing a BIP32 derive + a getPublicKey point-mul on every call, and reconcile() calls it for every spendable coin (56 here), with decode/send/exit/fee-math hitting it again. A key for an index is constant per wallet, so it's cached by index now (mailbox key too) — dozens of EC muls per boot collapse to one each
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MrkLsNScXe9b6BviUSdmMr
Diffstat (limited to 'src/app.js')
0 files changed, 0 insertions, 0 deletions