From 9bf6ecc4f380262a0a6f301a6a38de3c999d6a57 Mon Sep 17 00:00:00 2001 From: Jordi Baylina Date: Tue, 21 Jul 2020 08:47:10 +0200 Subject: [PATCH] Reducing constraints big array --- src/bigarray.js | 13 +++++++++++++ src/compiler.js | 33 ++++++++++++++++++++++----------- 2 files changed, 35 insertions(+), 11 deletions(-) diff --git a/src/bigarray.js b/src/bigarray.js index dfd58c3..ce68aa9 100644 --- a/src/bigarray.js +++ b/src/bigarray.js @@ -46,6 +46,19 @@ class _BigArray { if (idx >= this.length) this.length = idx+1; return true; } + getKeys() { + const newA = new BigArray(); + for (let i=0; i0) { - nextPossibleConstraints = {}; - removedSignals = {}; + nextPossibleConstraints = new BigArray(); + removedSignals = new BigArray(); nRemoved = 0; lIdx = {}; for (let i=0;i=0) { @@ -377,11 +388,11 @@ function reduceConstrains(ctx) { } possibleConstraints = nextPossibleConstraints; - } let o=0; for (let i=0; i