Re: [Development] QStringRef conversion functions

2012-06-13 Thread André Pönitz
On Wed, Jun 13, 2012 at 08:36:52PM +0200, Thiago Macieira wrote: > On quarta-feira, 13 de junho de 2012 18.14.59, aaron.kenn...@nokia.com > wrote: > > Won't a QString always require an allocation for the d-ptr? So > > it'll never be quite as cheap as QStringRef. > > Not exactly. > > A QStringRef

Re: [Development] QStringRef conversion functions

2012-06-13 Thread André Pönitz
On Wed, Jun 13, 2012 at 06:14:59PM +, aaron.kenn...@nokia.com wrote: > > That is what I'd love to see in 5.0. Making sub-QStrings as cheap > > as QStringRef currently is would give us quite significant > > performance boost in some common use-cases. Then, QStringRef > > definitely should go. >

Re: [Development] QStringRef conversion functions

2012-06-13 Thread Thiago Macieira
On quarta-feira, 13 de junho de 2012 18.44.41, aaron.kenn...@nokia.com wrote: > > A QStringRef points to an existing QString. Therefore, if we take a > > QString that is pointing to a substring of an existing QString, the > > d-ptr is already allocated. The new QString would be as cheap as the > >

Re: [Development] QStringRef conversion functions

2012-06-13 Thread Girish Ramakrishnan
4:55 PM > To: Keith Gardner > Cc: development@qt-project.org > Subject: Re: [Development] QStringRef conversion functions > > Hi, > > On Mon, Jun 11, 2012 at 11:38 AM, Keith Gardner > wrote: >> I was wondering if there would be a possibility of getting some of the &

Re: [Development] QStringRef conversion functions

2012-06-13 Thread Keith Gardner
t: Re: [Development] QStringRef conversion functions Hi, On Mon, Jun 11, 2012 at 11:38 AM, Keith Gardner 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

Re: [Development] QStringRef conversion functions

2012-06-13 Thread aaron.kennedy
Hi, On 13/06/2012, at 7:36 PM, ext Thiago Macieira wrote: > On quarta-feira, 13 de junho de 2012 18.14.59, aaron.kenn...@nokia.com wrote: >> Won't a QString always require an allocation for the d-ptr? So it'll never >> be quite as cheap as QStringRef. > > Not exactly. > > A QStringRef points t

Re: [Development] QStringRef conversion functions

2012-06-13 Thread Thiago Macieira
On quarta-feira, 13 de junho de 2012 18.14.59, aaron.kenn...@nokia.com wrote: > Won't a QString always require an allocation for the d-ptr? So it'll never > be quite as cheap as QStringRef. Not exactly. A QStringRef points to an existing QString. Therefore, if we take a QString that is pointing

Re: [Development] QStringRef conversion functions

2012-06-13 Thread aaron.kennedy
Hi, On 12/06/2012, at 1:08 AM, ext Konstantin Ritt wrote: > 2012/6/12 Thiago Macieira : >> 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 >>> >>> wrote: I was wondering if there would be a possibil

Re: [Development] QStringRef conversion functions

2012-06-11 Thread Konstantin Ritt
2012/6/12 Thiago Macieira : > 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 >> >> wrote: >> > I was wondering if there would be a possibility of getting some of the >> > conversion functions that are in QStri

Re: [Development] QStringRef conversion functions

2012-06-11 Thread Thiago Macieira
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 > > 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,

Re: [Development] QStringRef conversion functions

2012-06-11 Thread Girish Ramakrishnan
Hi, On Mon, Jun 11, 2012 at 11:38 AM, Keith Gardner 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

[Development] QStringRef conversion functions

2012-06-11 Thread Keith Gardner
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