mirror of https://github.com/libAthena/athena.git
DNAYaml: Use std::string_view instead of std::string for base64 characters
Eliminates a runtime static constructor that needs to execute. Also gets rid of a heap allocation.
This commit is contained in:
parent
ee5b894537
commit
9fc76a7dea
|
@ -1003,7 +1003,7 @@ bool YAMLDocWriter::RecursiveFinish(yaml_emitter_t* doc, const YAMLNode& node) {
|
|||
return true;
|
||||
}
|
||||
|
||||
static const std::string base64_chars =
|
||||
constexpr std::string_view base64_chars =
|
||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
"abcdefghijklmnopqrstuvwxyz"
|
||||
"0123456789+/";
|
||||
|
|
Loading…
Reference in New Issue