From: Patrick Donnelly Date: Sat, 17 Feb 2024 01:43:06 +0000 (-0500) Subject: common: use more efficient vector for stack X-Git-Tag: v20.0.0~2328^2~63 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=770ab517c2b05045c09af3d0a56b6446bd20bb58;p=ceph.git common: use more efficient vector for stack Signed-off-by: Patrick Donnelly --- 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; };