[MDEV-8719] Obsolete sql_memdup() in favor of THD::memdup() and thd_memdup() Created: 2015-09-01  Updated: 2015-11-26  Resolved: 2015-11-26

Status: Closed
Project: MariaDB Server
Component/s: OTHER
Fix Version/s: 10.2.0

Type: Task Priority: Major
Reporter: Sergey Vojtovich Assignee: Sergey Vojtovich
Resolution: Fixed Votes: 0
Labels: None

Epic Link: Performance: micro optimizations
Sprint: 10.2.0-1

 Description   

Since sql_memdup() doesn't have THD parameter, it has to retrieve THD::mem_root by calling relatively expensive pthread_getspecific(THR_MALLOC).

This can be optimized easily by modifying server to use THD::memdup() and modifying plugins to use thd_memdup().



 Comments   
Comment by Sergey Vojtovich [ 2015-11-18 ]

serg, please review patch for this task.

Comment by Sergei Golubchik [ 2015-11-20 ]

ok to push

Generated at Thu Feb 08 07:29:16 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.