[Development] is it possible to increase the max. document size for the JSON parser?
Konstantin Tokarev
annulen at yandex.ru
Wed Aug 7 01:23:14 CEST 2019
07.08.2019, 02:21, "Sérgio Martins via Development" <development at qt-project.org>:
> On 2019-08-06 22:49, Sérgio Martins via Development wrote:
>> On 2019-08-06 13:48, René J. V. Bertin wrote:
>>> Joerg Bornemann wrote:
>>>
>>>> Unfortunately, this isn't possible at the moment.
>>>> This issue is tracked in QTBUG-47629.
>>>
>>> Thanks, I'll try the patch!
>>
>> Can you also check how much memory is occupied by reading that 100 MB
>> file ?
>> My memory is hazy but I think it was several GBs.
>
> I looked at it again and the test-case was flawed, it was using unneeded
> QStrings and QString::toUtf8().
>
> By reading directly from the file heaptrack now reports only 300 MB
> peak.
That's what should be expected, as QJsonDocument uses binary serialization format
as its in-memory representation.
--
Regards,
Konstantin
More information about the Development
mailing list