From 770ab517c2b05045c09af3d0a56b6446bd20bb58 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Fri, 16 Feb 2024 20:43:06 -0500 Subject: [PATCH] common: use more efficient vector for stack Signed-off-by: Patrick Donnelly --- src/common/Formatter.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/Formatter.h b/src/common/Formatter.h index 1919b018a67..cddfdab0c4f 100644 --- a/src/common/Formatter.h +++ b/src/common/Formatter.h @@ -13,6 +13,7 @@ #include #include #include +#include namespace ceph { @@ -204,7 +205,7 @@ namespace ceph { copyable_sstream m_ss; copyable_sstream m_pending_string; std::string m_pending_name; - std::list m_stack; + std::vector m_stack; bool m_is_pending_string; bool m_line_break_enabled = false; }; -- 2.39.5