mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
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:
@@ -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()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user