[MDEV-8717] Obsolete sql_strdup() in favor of THD::strdup() and thd_strdup() 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_strdup() 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::strdup() and modifying plugins to use thd_strdup().



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

serg, please review patch for this bug.

Comment by Sergei Golubchik [ 2015-11-20 ]

ok to push

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