xinyiZzz commented on code in PR #50549: URL: https://github.com/apache/doris/pull/50549#discussion_r2077993135
########## be/src/vec/common/pod_array.h: ########## @@ -143,6 +146,32 @@ class PODArrayBase : private boost::noncopyable, return byte_size(num_elements) + pad_right + pad_left; } + // `tracking_and_check_memory` is called after alloc memory. + inline void tracking_and_check_memory(int64_t size) { + CONSUME_THREAD_MEM_TRACKER(size); + std::string err_msg; Review Comment: 初始化空的字符串是非常高效的,这里 reset peak 的时候初始化不会对性能有影响 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org