You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf: cache Poseidon1 engines in PoseidonXmss to avoid redundant rebuilds (#511)
compress() and sponge() were creating a new Poseidon1 engine on every
call, rebuilding the circulant MDS matrix and converting round constants
to numpy arrays each time. Cache engines as PrivateAttr so they are
built once per PoseidonXmss instance and reused across all calls.
Measured 2-2.5x speedup on pure Poseidon/XMSS tests.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments