[Development] QString::arg()
Thiago Macieira
thiago.macieira at intel.com
Sun Feb 17 21:32:58 CET 2013
On domingo, 17 de fevereiro de 2013 23.53.35, Mohsen Akhlaghi wrote:
> QString::arg() must have Escapes cached.
>
> Currently it iterates with every call that doesn't seem too perfect. The
> better solution is to have the iteration once at the first call after the
> value change so further calls won't need to iterate again.
>
> Since the maximum number of arguments for a single pass is 9, it's not
> actually enough in action and many calls to arg() with cached method would
> be the best. In this method the cache won't be filled before the first time
> arg() is called. So we won't have problems memory wise.
That would be ideal, but we don't have anywhere to store such information
until we can break binary compatibility again.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- 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/20130217/4900f764/attachment.sig>
More information about the Development
mailing list