mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 01:10:53 +01:00
In the methods readDiagramsXml we call addDiagram for each diagrams loaded from xml, inside the addDiagram method we call the method updateDiagramsFolioData() and to finish this method operate a loop for each existing diagram. Then when we load a project from xml of 10 folios, loop inside updateDiagramsFolioData() is called 55 time. 50 folios, loop inside updateDiagramsFolioData() is called 1275 time. 100 folios, loop inside updateDiagramsFolioData() is called 5050 time. Now instead of call addDiagram, we add diagram directly inside the methods readDiagramsXml and call the method updateDiagramsFolioData() only once when all diagrams are loaded.
55 KiB
55 KiB