[Development] QStringRef conversion functions
Thiago Macieira
thiago.macieira at intel.com
Tue Jun 12 00:38:42 CEST 2012
On segunda-feira, 11 de junho de 2012 14.54.44, Girish Ramakrishnan wrote:
> Hi,
>
> On Mon, Jun 11, 2012 at 11:38 AM, Keith Gardner
>
> <kgardner at zebraimaging.com> wrote:
> > I was wondering if there would be a possibility of getting some of the
> > conversion functions that are in QString implemented in QStringRef (toInt,
> > toFloat, etc...). The reasoning behind this is that I am using the
> > QXMLStreamReader to parse an XML file with over 88,704 floating point
> > values. I am trying to improve the speed at which the file is parsed and
> > I
> > believe one of the bottlenecks is taking an attribute of QStringRef and
> > copying its data into a QString in order to convert to a float. I would
> > prefer that the copy never happen but that would require some more
> > intelligence be added into the QStringRef class.
>
> I am tempted to say it's 5.1 material but it would be nice to see how
> much gains you are getting out of these new apis and how intrusive the
> new code is. Can you push your change to gerrit ?
We might be able to remove QStringRef before Qt 5.0 and replace it with plain
QString.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Intel Sweden AB - Registration Number: 556189-6027
Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120612/ac441a0b/attachment.sig>
More information about the Development
mailing list