make _binary arrays constexpr and use string_view instead of string (#2692)

* make _binary arrays constexpr and use string_view instead of string

By making _binary arrays constexpr and using string_view instead of string, startup speed of the library is improved.

* fixed interfaces for string_view
added /bigobj /MP to MSVC CXX-flags

* empty commit to trigger CI

* empty commit to force CI build

---------

Co-authored-by: Löw, Tobias <Tobias.Loew@iqony.energy>
This commit is contained in:
Tobias Loew
2026-03-22 16:10:51 +01:00
committed by GitHub
parent 0dea224e89
commit 3fa5c20e9b
10 changed files with 30 additions and 30 deletions

View File

@@ -1016,11 +1016,11 @@ std::string get_global_param_string(const std::string& ParamName) {
} else if (ParamName == "REFPROP_version") {
return REFPROPMixtureBackend::version();
} else if (ParamName == "cubic_fluids_schema") {
return CoolProp::CubicLibrary::get_cubic_fluids_schema();
return std::string{CoolProp::CubicLibrary::get_cubic_fluids_schema()};
} else if (ParamName == "cubic_fluids_list") {
return CoolProp::CubicLibrary::get_cubic_fluids_list();
} else if (ParamName == "pcsaft_fluids_schema") {
return CoolProp::PCSAFTLibrary::get_pcsaft_fluids_schema();
return std::string{CoolProp::PCSAFTLibrary::get_pcsaft_fluids_schema()};
} else {
throw ValueError(format("Input parameter [%s] is invalid", ParamName.c_str()));
}