Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(835)

Unified Diff: courgette/label_manager.cc

Issue 1935203002: [Courgette] Using LabelManager to reduce Courgette-apply peak RAM by 25%. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « courgette/label_manager.h ('k') | courgette/program_detector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/label_manager.cc
diff --git a/courgette/label_manager.cc b/courgette/label_manager.cc
index a109d8bda9fe9d43877301b2910150650e0ece03..51e0d5de43c945bfb2f7aeb39222586d626b5ce5 100644
--- a/courgette/label_manager.cc
+++ b/courgette/label_manager.cc
@@ -96,17 +96,6 @@ LabelManager::LabelManager() {}
LabelManager::~LabelManager() {}
// static
-int LabelManager::GetIndexBound(const RVAToLabel& labels_map) {
- int max_index = -1;
- for (const auto& rva_and_label : labels_map) {
- const Label& label = *rva_and_label.second;
- if (label.index_ != Label::kNoIndex)
- max_index = std::max(max_index, label.index_);
- }
- return max_index + 1;
-}
-
-// static
int LabelManager::GetLabelIndexBound(const LabelVector& labels) {
int max_index = -1;
for (const Label& label : labels) {
« no previous file with comments | « courgette/label_manager.h ('k') | courgette/program_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698