Re: [Interest] Faster QXmlStreamWriter?

2018-04-25 Thread Konstantin Tokarev
25.04.2018, 19:08, "Thiago Macieira" : > On Wednesday, 25 April 2018 08:45:41 PDT Thiago Macieira wrote: >>  On Wednesday, 25 April 2018 07:13:18 PDT Konstantin Tokarev wrote: >>  > 25.04.2018, 09:43, "Thiago Macieira" : >>  > > So Qt 6 QJsonDocument & family will have the 128 MB limit >>  > > re

Re: [Interest] Faster QXmlStreamWriter?

2018-04-25 Thread Thiago Macieira
On Wednesday, 25 April 2018 08:45:41 PDT Thiago Macieira wrote: > On Wednesday, 25 April 2018 07:13:18 PDT Konstantin Tokarev wrote: > > 25.04.2018, 09:43, "Thiago Macieira" : > > > So Qt 6 QJsonDocument & family will have the 128 MB limit > > > removed, at the expense of the binary JSON format req

Re: [Interest] Interest Digest, Vol 79, Issue 19

2018-04-25 Thread Thiago Macieira
On Wednesday, 25 April 2018 06:53:26 PDT Roland Hughes wrote: > What I'm trying to tell you is there was and still is a legitimate > reason to have a QDataStream which can write big-endian. Don't just rip > it out. Make it some kind of settable boolean flag in the class. There > is no way to know j

Re: [Interest] Faster QXmlStreamWriter?

2018-04-25 Thread Thiago Macieira
On Wednesday, 25 April 2018 07:13:18 PDT Konstantin Tokarev wrote: > 25.04.2018, 09:43, "Thiago Macieira" : > > So Qt 6 QJsonDocument & family will have the 128 MB limit > > removed, at the expense of the binary JSON format requiring parsing. > > That's sad, as we lose the single solution inside Q

Re: [Interest] Unable to run QtQuick TestCase from qrc resources

2018-04-25 Thread Christoph Keller
I have patched both blocks in the 5.11 branch: https://codereview.qt-project.org/#/c/227495/ On 25.04.18 17:14, André Hartmann wrote: Hi Igor, Am 25.04.2018 um 16:08 schrieb Igor Mironchik: Hi, if (path.startsWith(QLatin1String(":/"))) view.setSource(QUrl(QLatin1String("qrc:") +

Re: [Interest] Unable to run QtQuick TestCase from qrc resources

2018-04-25 Thread André Hartmann
Hi Igor, Am 25.04.2018 um 16:08 schrieb Igor Mironchik: Hi, if (path.startsWith(QLatin1String(":/")))     view.setSource(QUrl(QLatin1String("qrc:") + path.midRef(2))); Bug is here... path.midRef(1) should be or QLatin1String("qrc:/") Do you want to provide a fix? :) André On

Re: [Interest] Unable to run QtQuick TestCase from qrc resources

2018-04-25 Thread Igor Mironchik
Hi, You are right too. This should be done too. On 25.04.2018 17:59, Christoph Keller wrote: You're right, that line looks wrong indeed. I've got a Qt version to debug now. I don't come that for, already exists at the TestCaseCollector (https://github.com/qt/qtdeclarative/blob/5.11/src/qmlt

Re: [Interest] Unable to run QtQuick TestCase from qrc resources

2018-04-25 Thread Christoph Keller
You're right, that line looks wrong indeed. I've got a Qt version to debug now. I don't come that for, already exists at the TestCaseCollector (https://github.com/qt/qtdeclarative/blob/5.11/src/qmltest/quicktest.cpp#L493). Internally this creates QQmlComponent and I can reproduce the error wi

Re: [Interest] Faster QXmlStreamWriter?

2018-04-25 Thread Konstantin Tokarev
25.04.2018, 09:43, "Thiago Macieira" : > So Qt 6 QJsonDocument & family will have the 128 MB limit > removed, at the expense of the binary JSON format requiring parsing. That's sad, as we lose the single solution inside Qt for serialization without parsing > > -- > Thiago Macieira - thiago.maci

Re: [Interest] Unable to run QtQuick TestCase from qrc resources

2018-04-25 Thread Igor Mironchik
Hi, if (path.startsWith(QLatin1String(":/")))     view.setSource(QUrl(QLatin1String("qrc:") + path.midRef(2))); Bug is here... path.midRef(1) should be or QLatin1String("qrc:/") On 25.04.2018 16:16, Christoph Keller wrote: They should, at least the source of the framework sets the

Re: [Interest] Interest Digest, Vol 79, Issue 19

2018-04-25 Thread Reinhardt Behm
On Wednesday 25 April 2018 08:53:26 Roland Hughes wrote: > On 04/25/2018 08:24 AM, Thiago Macieira wrote: > > Another issue is that QDataStream tries to store all integers in big > > endian, unless you tell it otherwise. Since most machines are > > little-endian, that's a waste of CPU cycles, as yo

Re: [Interest] Interest Digest, Vol 79, Issue 19

2018-04-25 Thread Roland Hughes
On 04/25/2018 08:24 AM, Thiago Macieira wrote: Another issue is that QDataStream tries to store all integers in big endian, unless you tell it otherwise. Since most machines are little-endian, that's a waste of CPU cycles, as you're doing the endian conversion twice, for little gain, however fa

Re: [Interest] Unable to run QtQuick TestCase from qrc resources

2018-04-25 Thread Christoph Keller
They should, at least the source of the framework sets the path to ":/" on Android: https://github.com/qt/qtdeclarative/blob/5.11/src/qmltest/quicktest.cpp#L422 The same applies for the sourcePath property on all platforms: https://github.com/qt/qtdeclarative/blob/5.11/src/qmltest/quicktest.cp

Re: [Interest] Unable to run QtQuick TestCase from qrc resources

2018-04-25 Thread Igor Mironchik
Hi, On 25.04.2018 15:19, Igor Mironchik wrote: Hi, Try qrc:/ as prefix... Will not work too... Does qrc:/ supported by Qt Quick Test at all? Seems that no... On 25.04.2018 13:53, Christoph Keller wrote: Hello, is there a way to run the QtQuick TestCases from qrc resources? Running

Re: [Interest] Unable to run QtQuick TestCase from qrc resources

2018-04-25 Thread Igor Mironchik
Hi, Try qrc:/ as prefix... On 25.04.2018 13:53, Christoph Keller wrote: Hello, is there a way to run the QtQuick TestCases from qrc resources? Running them from the file system works as as expected but setting the source path to ":/" leads to the TestCase being loaded but it cannot find o

Re: [Interest] Faster QXmlStreamWriter?

2018-04-25 Thread Thiago Macieira
On Tuesday, 24 April 2018 23:36:15 PDT Thiago Macieira wrote: > 3) use the examples/corelib/serialization/convert tool[1] to > convert to other formats > 4) use the same tool with the "null" output to benchmark reading[2] > 5) use the tool with binary JSON as source to benchmark writing Attached