arnaucube
arnaucube/circomPublic Self-hosted repository
Reduce mem
Jordi Baylina jordi@baylina.cat
Thu, 17 Sep 2020 22:53:06 +0200
commit

fc01aad8b6b72f6cb1f7b313ae88dca5a9de67b1

parent

3d5aa14cdc18e098a55e12bbc0a94539baa0096d

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/compiler.js → src/compiler.js

@@ -359,7 +359,7 @@ const c = ctx.constraints[possibleConstraints[i]];

if (!c) continue; // Limit of number of lelements removed per step - if (nRemoved>100000) { + if (nRemoved>500000) { nextPossibleConstraints[possibleConstraints[i]] = true; continue; }

@@ -452,6 +452,7 @@ while (lSignal.e>=0) {

lSignal = ctx.signals[lSignal.e]; } + sig2constraint[s] = null; lSignal.c = ctx.stDISCARDED; }