You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In very large networks, the traceback can sometimes be very slow. The whole network pauses during slow tracebacks.
A hackish solution could be to call traceBack asynchronously from a setTimeout call, which might not freeze the network in the same way. However, this would address the symptoms rather than the problem, and not actually improve the speed.
A much better solution would be to increase speed by reducing the number of iterations that are made through the traceback nodes. Right now, 6 iterations are made:
Iterate through parents to identify traceback nodes
Looking into the code for vis.DataSet.update, it appears that commit dfc633e was made in error. This added two more iterations to the list, further slowing down the traceback, rather than speeding it up.
To bring this down to one loop, traceBack, getTraceBackNodes, and getTraceBackEdges could be merged into a single function with one iteration. nodes.update() and edges.update() could be called once for each item as they are identified and modified. This could bring the total loops made through the same data during a traceBack down to one.
The text was updated successfully, but these errors were encountered:
In very large networks, the traceback can sometimes be very slow. The whole network pauses during slow tracebacks.
A hackish solution could be to call
traceBack
asynchronously from asetTimeout
call, which might not freeze the network in the same way. However, this would address the symptoms rather than the problem, and not actually improve the speed.A much better solution would be to increase speed by reducing the number of iterations that are made through the traceback nodes. Right now, 6 iterations are made:
vis.DataSet.update
vis.DataSet.update
Looking into the code for
vis.DataSet.update
, it appears that commit dfc633e was made in error. This added two more iterations to the list, further slowing down the traceback, rather than speeding it up.To bring this down to one loop,
traceBack
,getTraceBackNodes
, andgetTraceBackEdges
could be merged into a single function with one iteration.nodes.update()
andedges.update()
could be called once for each item as they are identified and modified. This could bring the total loops made through the same data during atraceBack
down to one.The text was updated successfully, but these errors were encountered: