Add a fix for slowness in traverseMsg, hope it doesn't cause regressions
This commit is contained in:
parent
746596e5f3
commit
68ddd536c4
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue