Uploaded image for project: 'VOLTHA'
  1. VOLTHA
  2. VOL-4151

Code improvement at openolt-agent

    XMLWordPrintable

    Details

      Description

      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",

        Attachments

          Activity

            People

            Assignee:
            ggowdra Girish Gowdra
            Reporter:
            ggowdra Girish Gowdra
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: