mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-03-14 10:01:52 +00:00
FormatInfoMetrics used 18KB of stack size in debug mode. Each call to append increased the stack even though the calls were done from the scope blocks. This PR overcomes this by move the calls to lambda functions. Signed-off-by: Roman Gershman <roman@dragonflydb.io>