79695516

Date: 2025-07-09 11:15:41
Score: 1
Natty:
Report link

The solution for me was to upgrade protobuf and use absl::string_view instead of std::string in my proto messages.

// message.proto
edition = "2023";

import "google/protobuf/cpp_features.proto";
option features.(pb.cpp).string_type=VIEW;
// Now each string field will be string_view in generated code.
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Njrslv-yndx-cloud