optimize performance
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user