Browse Source

BigArray in wit2sig

master
Jordi Baylina 4 years ago
parent
commit
145d5a21ad
No known key found for this signature in database GPG Key ID: 7480C80C1BE43112
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/build.js

+ 2
- 1
src/build.js

@ -21,6 +21,7 @@ const assert = require("assert");
const utils = require("./utils"); const utils = require("./utils");
const gen = require("./gencode").gen; const gen = require("./gencode").gen;
const createRefs = require("./gencode").createRefs; const createRefs = require("./gencode").createRefs;
const BigArray = require("./bigarray");
module.exports = build; module.exports = build;
@ -229,7 +230,7 @@ function buildWit2Sig(ctx) {
ctx.totals[ctx.stPUBINPUT] + ctx.totals[ctx.stPUBINPUT] +
ctx.totals[ctx.stPRVINPUT] + ctx.totals[ctx.stPRVINPUT] +
ctx.totals[ctx.stINTERNAL]; ctx.totals[ctx.stINTERNAL];
const arr = Array(NVars);
const arr = new BigArray(NVars);
for (let i=0; i<ctx.signals.length; i++) { for (let i=0; i<ctx.signals.length; i++) {
if (ctx.verbose && (i%1000000 ==0)) console.log(`buildWit2Sig signal: ${i}/${ctx.signals.length}`); if (ctx.verbose && (i%1000000 ==0)) console.log(`buildWit2Sig signal: ${i}/${ctx.signals.length}`);
const outIdx = ctx.signals[i].id; const outIdx = ctx.signals[i].id;

Loading…
Cancel
Save