icn3d 3.26.2 → 3.26.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/icn3d.js CHANGED
@@ -44498,10 +44498,27 @@ class LineGraph {
44498
44498
 
44499
44499
  try {
44500
44500
  let dataArray2 = [];
44501
- let allPromise = Promise.allSettled(ajaxArray);
44502
- // // reject if any ajax call is failed so that we don't miss the best alignment
44503
- // let allPromise = Promise.all(ajaxArray);
44504
- dataArray2 = await allPromise;
44501
+
44502
+ // let allPromise = Promise.allSettled(ajaxArray);
44503
+ // dataArray2 = await allPromise;
44504
+
44505
+ //split arrays into chunks of 100 jobs
44506
+ let n = (me.bNode) ? 16 : 96;
44507
+ for(let i = 0, il = (ajaxArray.length - 1) / n + 1; i < il; ++i) {
44508
+ let currAjaxArray = [];
44509
+ if(i == il - 1) { // last one
44510
+ currAjaxArray = ajaxArray.slice(i * n, ajaxArray.length);
44511
+ }
44512
+ else {
44513
+ currAjaxArray = ajaxArray.slice(i * n, (i + 1) * n);
44514
+ }
44515
+
44516
+ let currPromise = Promise.allSettled(currAjaxArray);
44517
+ let currDataArray = await currPromise;
44518
+
44519
+ dataArray2 = dataArray2.concat(currDataArray);
44520
+ }
44521
+
44505
44522
 
44506
44523
  let bRound1 = true;
44507
44524
  await thisClass.parseAlignData(dataArray2, domainidpairArray, bRound1);