Skip to content

Commit

Permalink
#Centipede Tiny C++20 optimization
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 577001486
  • Loading branch information
ussuri authored and copybara-github committed Oct 26, 2023
1 parent 88dde14 commit 7be1800
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions centipede/runner_result.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,7 @@ class ExecutionResult {
uint64_t peak_rss_mb = 0; // Peak RSS in Mb after executing the input.

// For tests.
bool operator==(const Stats& other) const { // = default in C++20.
return prep_time_usec == other.prep_time_usec &&
exec_time_usec == other.exec_time_usec &&
peak_rss_mb == other.peak_rss_mb &&
post_time_usec == other.post_time_usec;
}
bool operator==(const Stats&) const = default;
};

// Accessors.
Expand Down

0 comments on commit 7be1800

Please sign in to comment.