mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
Background: at project load time for all layers a copy of the style is loaded and stored as a DOM document. This was implemented for broken layers to make it possible to store the style back to the project if a broken layer was kept in the project. Of course this is not needed nor useful in a server context. By introducing a new project load flag and using it in the server config (projects) cache we allow to skip the initial storage of styles for the server and cut the startup times of our test "monster" project (~1000 PG layers) from 26 seconds to 15. Before you ask: I chose to always store the original style with the idea that we might have been able to use the original style copy also to "restore" styles to their initial state. This was never implemented, so I guess we might be good to make the initial style copy selectively available for broken layers only in order to speed up project loading in the general case (desktop).