When loading large graphs, like LLMs, it can be very slow to load such graphs to the point of freezing model-explorer. This issue is an example of what happens: #50
And from investigating slow to load graphs, it appears that the layouting step is what takes the longest.
Recently an article came out from the SpiderMonkey team on exactly this problem: layouting graphs, specially graphs that represent code.
My suggestion then is to evaluate if it is feasible to use a similar strategy from what is proposed on the SpiderMonkey article for layout to improve performance.
When loading large graphs, like LLMs, it can be very slow to load such graphs to the point of freezing model-explorer. This issue is an example of what happens: #50
And from investigating slow to load graphs, it appears that the layouting step is what takes the longest.
Recently an article came out from the SpiderMonkey team on exactly this problem: layouting graphs, specially graphs that represent code.
My suggestion then is to evaluate if it is feasible to use a similar strategy from what is proposed on the SpiderMonkey article for layout to improve performance.