Add a fix for slowness in traverseMsg, hope it doesn't cause regressions

This commit is contained in:
Ruben van de Ven 2019-04-07 16:38:15 +02:00
parent 746596e5f3
commit 68ddd536c4

View file

@ -1698,6 +1698,9 @@ class Graph {
let i = 0, y =0;
for(let childMsgId of msgsPerMsg[msgId]) {
if(distances[childMsgId] !== null){
continue;
}
if(distances[childMsgId] === null || (goingDown && distances[childMsgId][0] > depth)) {
if(distances[childMsgId] === null) {