diff options
author | Martijn Vels <mvels@google.com> | 2023-09-08 11:18:54 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-09-08 11:19:54 -0700 |
commit | efb035a5973b60d35ed8fcaa43e6736936a96173 (patch) | |
tree | 5d1a245997c1d47b339b355fdfddcecbf692818a /absl/strings/internal/cordz_info.cc | |
parent | 09d29c580a30a463fac58ce8b926d283a07f656d (diff) | |
download | abseil-efb035a5973b60d35ed8fcaa43e6736936a96173.tar.gz abseil-efb035a5973b60d35ed8fcaa43e6736936a96173.tar.bz2 abseil-efb035a5973b60d35ed8fcaa43e6736936a96173.zip |
Remove CordRepRing experiment.
We have no intention to use it instead of the CordRepBtree implementation, so cleanup up and remove all code and references.
PiperOrigin-RevId: 563803813
Change-Id: I95a67318d0f722f3eb7ecdcc7b6c87e28f2e26dd
Diffstat (limited to 'absl/strings/internal/cordz_info.cc')
-rw-r--r-- | absl/strings/internal/cordz_info.cc | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/absl/strings/internal/cordz_info.cc b/absl/strings/internal/cordz_info.cc index b830c25c..b24c3da7 100644 --- a/absl/strings/internal/cordz_info.cc +++ b/absl/strings/internal/cordz_info.cc @@ -21,7 +21,6 @@ #include "absl/strings/internal/cord_internal.h" #include "absl/strings/internal/cord_rep_btree.h" #include "absl/strings/internal/cord_rep_crc.h" -#include "absl/strings/internal/cord_rep_ring.h" #include "absl/strings/internal/cordz_handle.h" #include "absl/strings/internal/cordz_statistics.h" #include "absl/strings/internal/cordz_update_tracker.h" @@ -97,14 +96,11 @@ class CordRepAnalyzer { repref = CountLinearReps(repref, memory_usage_); switch (repref.tag()) { - case CordRepKind::RING: - AnalyzeRing(repref); - break; case CordRepKind::BTREE: AnalyzeBtree(repref); break; default: - // We should have either a btree or ring node if not null. + // We should have a btree node if not null. ABSL_ASSERT(repref.tag() == CordRepKind::UNUSED_0); break; } @@ -204,17 +200,6 @@ class CordRepAnalyzer { return rep; } - // Analyzes the provided ring. - void AnalyzeRing(RepRef rep) { - statistics_.node_count++; - statistics_.node_counts.ring++; - const CordRepRing* ring = rep.rep->ring(); - memory_usage_.Add(CordRepRing::AllocSize(ring->capacity()), rep.refcount); - ring->ForEach([&](CordRepRing::index_type pos) { - CountLinearReps(rep.Child(ring->entry_child(pos)), memory_usage_); - }); - } - // Analyzes the provided btree. void AnalyzeBtree(RepRef rep) { statistics_.node_count++; |