Sure, you can use append() or push_back(), operator +=, or even sprintf, but I really doubt you will notice any change in performance with such micro-optimizations.First, is there another method to do this?
The most readable one (for me the "arg()" method, but it is a matter of personal preference).Second, which of them is the best for situations like the one mentioned above?
The thing you are doing in the background and stuff related to gui will have much greater impact on the performance than actual string composition.what about speed and memory efficiency?
Anyway, if you are unsure, then measure, do some performance tests.
Bookmarks