[Qt-creator] Multiple overwriting of settings on disk

Карелин Павел hkarel at yandex.ru
Sun Nov 26 15:59:06 CET 2017



24.11.2017 10:20, Eike Ziller пишет:
> Sounds much like https://bugreports.qt.io/browse/QTCREATORBUG-15594
Yes, it is that problem. Only I do not understand why all the discussion 
was reduced to discussing the shortcomings of QSettings?! Instead of 
figuring out why the save function is called so often. In fact, the save 
function is called for each mouse movement. I analyzed your code and 
wrote a small patch that solves this problem. The patch is attached.

--
BR, Pavel

>
> Br, Eike
>
>> On Nov 23, 2017, at 18:38, Карелин Павел <hkarel at yandex.ru> wrote:
>>
>>
>>
>> 23.11.2017 13:54, Konstantin Tokarev пишет:
>>> 23.11.2017, 11:56, "Карелин Павел" <hkarel at yandex.ru>:
>>>> Hi, everybody
>>>>
>>>> Sometimes, during debugging, I need to change the width of the columns
>>>> in the debugger (see the picture, red frame).
>>>> In this case, the configuration file is overwritten multiple times (I
>>>> think so).
>>> This claim can and should be proven (or disproven) with strace or similar tool
>> More than 40 requests per second to the file QtCreator.ini. Is it convincing enough?
>>
>> strace -t -f ./qtcreator.sh 2>&1 | grep -P 'open.*QtCreator\.ini.*O_RDWR' > /tmp/QtCreator.ini.access
>> cat QtCreator.ini.access | grep '19:39:57' | wc -l
>> 42
>> cat QtCreator.ini.access | grep '19:40:12' | wc -l
>> 47
>>
>>>> The hard drive is annoyingly cracking.
>>> You may want to use SSD, they don't crack
>> You have a special sense of humor ...
>>
>>>> Is it possible to reduce the frequency of overwriting settings?
>>> FWIW this software can help with any application that you think is writing too often:
>>>
>>> https://wiki.archlinux.org/index.php/Anything-sync-daemon
>> Provided that in QtCreator this problem in principle will not be solved (apparently all work on SSD), then yes - the tool will help.
>>
>>>> I use QtCreator 4.4, gitrev: 6afdb8bdf957909d086684ada10cf86f132c3efe
>>>>
>>>> --
>>>> BR, Pavel Karelin
>>>> ,
>>>>
>>>> _______________________________________________
>>>> Qt-creator mailing list
>>>> Qt-creator at qt-project.org
>>>> http://lists.qt-project.org/mailman/listinfo/qt-creator
>> <QtCreator.ini.access>_______________________________________________
>> Qt-creator mailing list
>> Qt-creator at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/qt-creator

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Decrease-the-frequency-of-the-function-call-saveStat.patch
Type: text/x-patch
Size: 1868 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20171126/d7dad35c/attachment.bin>


More information about the Qt-creator mailing list