Skip to content

Don't use tr() on strings that don't require translation #904

@vadi2

Description

@vadi2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions