Performance enhancement for Links(Dependencies)

Hello team,

Is there any way to improve the gantt performance for the project plan having more links(dependencies)

I observed the performance of gantt is reducing as the number of links is increasing

My project plan is having over 1600 tasks and more than 70 links between them

If I make the links array as empty immediately it will load very quickly

Hello Siddhesh,
Gantt performance depends not only on the number of tasks and links, but also on the enabled features.
I don’t see any issues in the following samples when I add 5000 tasks and links:
https://snippet.dhtmlx.com/ri1b3mth

https://docs.dhtmlx.com/gantt/samples/08_api/10_performance_tweaks.html

Probably, the issue is related to the Gantt configuration, but it is hard to suggest what might be wrong as I don’t see your code.
Please add your configuration to the following snippet and make sure that the issue is reproduced there:

Then, click on the Save button and send me the link.
Or send me a ready demo with all the necessary JavaScript and CSS files so that I can reproduce the issue locally.

Hello, here is an example of performance issue when we have a lot of links :slight_smile: DHTMLX Snippet Tool

Hello,
Thank you for sharing an example.
I see that there is a performance issue when I try to scroll Gantt and interact with it, but is that a realistic scenario? The links are created in a way auto-scheduling would never work because the tasks are linked to themselves and there are cycles between tasks.

Also, let me explain how the smart rendering works. Gantt renders only the task rows and task bars in the viewport. As for the links, Gantt renders a link if at least one task is inside the viewport or the link crosses the viewport horizontally or vertically. In the snippet you shared, there are 2450 DOM elements of the links:

So, it is expected to have performance issues with so many elements in the DOM.
If there are fewer link elements, it works better:

https://snippet.dhtmlx.com/365gmy72

However, I agree with you that this should be fixed as in the 8.0 and 7.1 version even scrolling Gantt works faster. In the future, the dev team will fix the bugs related to auto-scheduling. But unfortunately, I cannot give you any ETA.

Hello, thanks for your reply. We have this specific issue with XER files coming from Primavera. We can have scenarios with up to 10,000 tasks and 30,000 links. We don’t use auto‑scheduling, and we are experiencing the same issue as in the example I showed you.
Also, when trying to shift a task, the screen becomes blocked (frozen).

Hello,
Thank you for the clarification.
Can you share a test Primavera file so that I can attach it to the issue in our internal bug tracker? This will help the dev team to test the import and export of a larger file as well.