Skip to content

Commit

Permalink
Turn on the table-driven parser by default, as it is no longer experi…
Browse files Browse the repository at this point in the history
…mental.

This parser reduces binary code size between 1% and 20%, particularly of debug and sanitized builds, while improving aggregate performance.

Micro benchmarks may regress, but large system performance improves.

PiperOrigin-RevId: 531505892
  • Loading branch information
protobuf-github-bot authored and copybara-github committed May 12, 2023
1 parent 56d1b0f commit c3e2efe
Show file tree
Hide file tree
Showing 5 changed files with 2,052 additions and 2,847 deletions.
2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/cpp/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ struct Options {
std::string annotation_guard_name;
FieldListenerOptions field_listener_options;
EnforceOptimizeMode enforce_mode = EnforceOptimizeMode::kNoEnforcement;
enum { kTCTableNever, kTCTableAlways } tctable_mode = kTCTableNever;
enum { kTCTableNever, kTCTableAlways } tctable_mode = kTCTableAlways;
int num_cc_files = 0;
bool safe_boundary_check = false;
bool proto_h = false;
Expand Down
Loading

0 comments on commit c3e2efe

Please sign in to comment.