-
Type: Task
-
Status: Resolved (View Workflow)
-
Priority: Medium
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: VOLTHA v2.9
-
Component/s: openolt-agent
-
Labels:
-
Story Points:1
-
Epic Link:
-
Sprint:VOLTHA 2.9 - Sprint 1
core_utils.cc:1830 the static declaration should have been static const. This is to give the compiler an opportunity to optimize the binary.
std::pair<grpc_ssl_client_certificate_request_type, bool> get_grpc_tls_option(const char* tls_option) {
static std::map<std::string,grpc_ssl_client_certificate_request_type> grpc_security_option_map = {{"GRPC_SSL_DONT_REQUEST_CLIENT_CERTIFICATE",
Better:
std::pair<grpc_ssl_client_certificate_request_type, bool> OpenOltConfig::get_tls_client_validation() {
static const std::map<std::string,grpc_ssl_client_certificate_request_type> grpc_security_option_map = {{"GRPC_SSL_DONT_REQUEST_CLIENT_CERTIFICATE",