07.08.2019, 02:21, "Sérgio Martins via Development" <[email protected]>: > 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 _______________________________________________ Development mailing list [email protected] https://lists.qt-project.org/listinfo/development
