[Interest] Faster QXmlStreamWriter?

2018-04-22 Thread Vadim Peretokin
I'm looking at optimizing an applications save performance - it is too slow right now and causes too much of a freeze. We're using QXmlStreamWriter, here's the implementation . Profiling suggests that Qt's write element / attribu

Re: [Interest] Faster QXmlStreamWriter?

2018-04-22 Thread Giuseppe D'Angelo
Il 22/04/2018 16:30, Vadim Peretokin ha scritto: A lot of time seems to be spent resizing the buffer, and unfortunately there doesn't seem to be a way to pre-set the QBuffer size to something reasonable to begin with. Anyone have tips? Didn't check the actual code, but you can always resize

Re: [Interest] Faster QXmlStreamWriter?

2018-04-22 Thread Vadim Peretokin
Thanks! That helped remove the resize operation from the profiling data, but QBuffer::writeData is still there, and the overall time didn't change much. Is there anything else I can look at, or is this a dead end then - requires a different serialization solution altogether (a lot of work)? On Su

Re: [Interest] Faster QXmlStreamWriter?

2018-04-22 Thread Thiago Macieira
On Sunday, 22 April 2018 22:15:48 PDT Vadim Peretokin wrote: > Thanks! That helped remove the resize operation from the profiling data, > but QBuffer::writeData is still there, and the overall time didn't change > much. > > Is there anything else I can look at, or is this a dead end then - require