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.
Currently, an error contains a simple
std::stringwhich 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.