[Interest] Faster QXmlStreamWriter?

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Sun Apr 22 16:53:07 CEST 2018

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 a QBuffer 
internal bytearray:

QBuffer b;
b.buffer().resize(1234); // or reserve()


Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4007 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180422/569bf2a4/attachment.bin>

More information about the Interest mailing list