mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
According to Qt creator flame graph, call QSettings take lot of time. When loading the element collection, each items of the collection get the current language by calling the function QString QETApp::langFromSetting(). This function instantiate a QSettings object each time and take a lot of time. Now the QSettings is instantiate only at the first call, and the value is stored in memory, then all other call of the function don't instantiate a QSettings, but just return the value in memory.
71 KiB
71 KiB