Countering string bloat

A lot of our code deals with text strings in one way or the other, and often not even with particularly complex ones. Seemingly simple and yet we have a myriad of different APIs for that in Qt. Here are two concrete examples on the impact of picking the right string types and using them correctly.


This is a companion discussion topic for the original entry at https://www.volkerkrause.eu/2023/09/09/qt-string-bloat.html
3 Likes

I also find the inline issue in O0 but in O2 with or without inline the generated assembly code is the same.