mirror of
https://github.com/arnaucube/circom.git
synced 2026-02-07 03:06:42 +01:00
Reduce mem
This commit is contained in:
@@ -359,7 +359,7 @@ async function reduceConstrains(ctx) {
|
|||||||
if (!c) continue;
|
if (!c) continue;
|
||||||
|
|
||||||
// Limit of number of lelements removed per step
|
// Limit of number of lelements removed per step
|
||||||
if (nRemoved>100000) {
|
if (nRemoved>500000) {
|
||||||
nextPossibleConstraints[possibleConstraints[i]] = true;
|
nextPossibleConstraints[possibleConstraints[i]] = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -452,6 +452,7 @@ async function reduceConstrains(ctx) {
|
|||||||
lSignal = ctx.signals[lSignal.e];
|
lSignal = ctx.signals[lSignal.e];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sig2constraint[s] = null;
|
||||||
lSignal.c = ctx.stDISCARDED;
|
lSignal.c = ctx.stDISCARDED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user