Skip to content

Optimize CallError::what_ #4

@taminob

Description

@taminob

Currently, an error contains a simple std::string which can lead to unnecessary overhead due to string copying.
Since many error strings are constant, it might be sufficient to store a pointer to some constant memory.

Further testing and benchmarking required.
Also some additional investigation if the non-constant strings are actually necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions