optimize performance

This commit is contained in:
obdev
2023-05-09 07:12:01 +00:00
committed by ob-robot
parent 7a2df88e93
commit 22c390d8e6
4 changed files with 13 additions and 6 deletions

View File

@ -638,6 +638,13 @@ int ObExecContext::get_convert_charset_allocator(ObArenaAllocator *&allocator)
return ret;
}
void ObExecContext::try_reset_convert_charset_allocator()
{
if (OB_NOT_NULL(convert_allocator_)) {
convert_allocator_->reset_remain_one_page();
}
}
int ObExecContext::get_udf_ctx_mgr(ObUdfCtxMgr *&udf_ctx_mgr)
{
int ret = OB_SUCCESS;

View File

@ -159,6 +159,7 @@ public:
void reset_expr_op();
inline bool is_expr_op_ctx_inited() { return expr_op_size_ > 0 && NULL != expr_op_ctx_store_; }
int get_convert_charset_allocator(common::ObArenaAllocator *&allocator);
void try_reset_convert_charset_allocator();
void destroy_eval_allocator();