fix patch icp feat/phase-2g-bundle
AI Agent git-import/068377df · 122 days ago · Mar 26, 2026 · Diff

fix(icp): saveStable uses Buffer — avoid O(n²) Array.append (40B instruction trap)

Per-message limit was exceeded on batch/single note writes for large vaults because vaultRows grew with repeated Array.append. Accumulate rows in Buffer then Buffer.toArray (linear in user/vault/note count).

sha256:912ff29b30c949a7a833194f7c5e4a05281e85a197121c79f305a00890f99390 sha
sha256:3a04371007d1c6579d4e54b32edf47df0cb6368116210e2b34a193d659fbbf42 snapshot
← Older Oldest on feat/phase-2g-bundle
All commits
Newer → Latest on feat/phase-2g-bundle

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:912ff29b30c949a7a833194f7c5e4a05281e85a197121c79f305a00890f99390 --body "your comment"