[Development] Feature Freeze Exception: QStringView

Edward Welbourne edward.welbourne at qt.io
Mon Feb 6 11:33:52 CET 2017


>>> [followed by exception handling code irrelevant for us]
>>
>> I disagree. The exception code is not irrelevant for our users (and
>> not for us, either, e.g. in QtCore).

Thiago Macieira (3 February 2017 17:45)
> It's irrelevant when the function called is one of ours, in a library
> of ours that got compiled with -fno-exceptions. It'll never
> throw. Even the few libraries we compile with exceptions will never
> throw. *Especially* the functions that would not allocate memory
> anyway, just increase a refcount.

If the unused code gets loaded into memory, then it's not entirely
irrelevant; it is costing run-time memory and making caches miss
more often.  Smaller code runs faster.

        Eddy.



More information about the Development mailing list