[Interest] QStringLiteral and Visual Studio 2017 15.3 :(

Thiago Macieira thiago.macieira at intel.com
Wed Oct 18 17:51:19 CEST 2017


On Wednesday, 18 October 2017 07:58:42 PDT Philippe wrote:
> FYI, I just discovered that QStringLiteral has become pretty expensive under
> Visual Studio 2017 15.3, compared to the past (Visual Studio 2015).
> 
> Much more assembly code generated for the associated lambda, and
> _Init_thread_header / _Init_thread_footer is called at the first call of
> each instance of QStringLiteral . (which actually seems right, because of
> C++11's thread safe initialisations of static variables). Not sure to see
> any longer some interest in QStringLiteral...
> 
> release-mode code generated for the related lambda: for VS 2017.3 / Qt 5.9.1

That's a Visual Studio compiler bug and regression. It's acknowledged by 
Microsoft.

It's the same issue that makes using static builds impossible.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list