[Development] Qt6: Adding UTF-8 storage support to QString
Matthew Woehlke
mwoehlke.floss at gmail.com
Tue Jan 22 20:02:22 CET 2019
On 18/01/2019 11.09, Thiago Macieira wrote:
> As for strings, the QString constructor takes UTF-8 input, but however fast
> the decoder is, it's still slightly slower than the Latin1 decoder. So if your
> string is purely US-ASCII, using QLatin1String is recommended.
...but I assume QStringLiteral remains even faster? (I would think so;
not only is *no* decoding needed, which you could also get just by using
wide string literals, but also no *allocation*...)
--
Matthew
More information about the Development
mailing list