https://meetingcpp.com/tl_files/mcpp/2015/talks/Marc-Mutz-MC++15-Effective-Qt.pdf
If the string is not going to require translation, don't use tr() as it is an expensive operation:
Always allocates memory
– Expensive UTF-8 decoding even if source is ASCII
https://meetingcpp.com/tl_files/mcpp/2015/talks/Marc-Mutz-MC++15-Effective-Qt.pdf
If the string is not going to require translation, don't use tr() as it is an expensive operation: