At present, sunflower Gantt chart is in the intensive feature development stage. Therefore, every Monday updates related logs, although we have very few people and there is not much free time, the development process is still not relaxed at all.
Let's talk about the development last week. The plan last week is an important part of the first round of performance optimization"
Create on demand ", Although many problems have been encountered, this function has finally been completed. Now, any layer in the chart and list should be created whenever necessary, therefore, the page initialization performance is greatly improved, and other operations on the page, such as the performance of deleting, folding, and adding and scaling, are also improved to a certain extent, and the page consumes less ie memory.
After the transformation, the layers in the list and map follow the fixed
Init ,
Draw ,
Clear ,
Depose The four processes are drawn only when needed. The time required for Gantt Chart Initialization is changed to 1/7 (taking the Gantt chart of 100 tasks as an example), and the Gantt chart is scaled and deleted, fold also has a significant performance improvement, and
Greatly improve the ability to process large XML files . After testing, it is completely possible to run 2000 tasks.
The disadvantage is that when you drag a vertical scroll bar, some layers need to be created on the page for the user to display.
Decreased User Experience We will continue to optimize this problem. However, because the creation of layers always requires execution, the execution will affect the performance at that time, so the optimization will not have much effect. (You can also create more or all layers during page initialization, which will improve the vertical scrolling performance and decrease the page initialization performance)
In addition to the killer feature of "create on demand", Gantt is updated as follows this week:
Optimize the List table header to make
The table header is strictly aligned with the table content. To improve user experience.
Optimize the trigger mechanism of task percentage and size dragging
You can use the classname attribute of XML
Display style of the task bar chart And the display style is optimized. In fact, the bar chart style in the sunflower Gantt chart is very flexible and can define the Gantt chart style by yourself, after the release of beta2, we will provide detailed instructions when compiling documents in a centralized manner. You can now see in the website example that some tasks have been specified with different styles.
Now, please goSunflower Gantt ChartTry the performance improvement after this optimization!
We will continue to work hard to provide you with a perfect Gantt Chart component!