diff options
author | Eugene Kosov <claprix@yandex.ru> | 2019-05-06 22:30:35 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-05-10 07:56:55 +0300 |
commit | 06442e3e9f7819a982eb7a4dc865be02c556ab06 (patch) | |
tree | 8cc76a061d729b988799e8d0706cde3d9c2c159f /storage/perfschema/pfs_timer.h | |
parent | d0ee3b5500cdaf3382fc8f26c883f45d8f4bdf5b (diff) | |
download | mariadb-git-06442e3e9f7819a982eb7a4dc865be02c556ab06.tar.gz |
MDEV-19399 do not call slow my_timer_init() several times
No functional change.
Call my_timer_init() only once and then reuse it from InnoDB and
perfschema storage engines.
This patch speeds up empty test for me like this:
./mtr -mem innodb.kevg,xtradb 1.21s user 0.84s system 34% cpu 5.999 total
./mtr -mem innodb.kevg,xtradb 1.12s user 0.60s system 31% cpu 5.385 total
Diffstat (limited to 'storage/perfschema/pfs_timer.h')
-rw-r--r-- | storage/perfschema/pfs_timer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/perfschema/pfs_timer.h b/storage/perfschema/pfs_timer.h index 1cae20e89dd..1b167a46dad 100644 --- a/storage/perfschema/pfs_timer.h +++ b/storage/perfschema/pfs_timer.h @@ -102,7 +102,7 @@ extern enum_timer_name statement_timer; Timer information data. Characteristics about each suported timer. */ -extern MY_TIMER_INFO pfs_timer_info; +extern MYSQL_PLUGIN_IMPORT MY_TIMER_INFO sys_timer_info; /** Initialize the timer component. */ void init_timers(); |