[Development] QStringRef conversion functions

Keith Gardner kgardner at zebraimaging.com
Mon Jun 11 20:38:35 CEST 2012


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.

Would this be possible to add this in time for the Qt 5.0 release?  If not, would it be possible to add this for Qt 5.1 release?

Keith Gardner
Software Engineer
Zebra Imaging
9801 Metric Blvd., Suite 200
Austin, TX 78758

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120611/d366c513/attachment.html>


More information about the Development mailing list