Skip to content

Skip the initialization of properties with default values on load

Alexander Semke requested to merge work/skip-init-on-load into master

Description

Skip the initialization of properties with default values on load.

At the moment the properties of many objects are initialized during the project load - default initialization when creating the objects and additionally setting the properties to the values saved in the project file. The purpose of this MR is to speed up the loading of projects by skipping the default initialization during the project load. For some objects like Spreadsheet, Worksheet and CartesianPlot this optimization is already being done and we extend it now to more objects that have many properties.

Besides the faster loading, this MR also addresses a couple of other issues:

  • properly set the limit of ReferenceLine and ReferenceRange after the load
  • don't crash when a project with an invalid coordinate system index is being loaded, s.a. #869 (closed)

Conformity

When external dependencies are removed

  • Reporting to ...
Edited by Alexander Semke

Merge request reports

Loading