summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2022-10-11 00:07:38 +0200
committerVladislav Vaintroub <wlad@mariadb.com>2022-10-11 00:08:54 +0200
commit15edd69ddf649ebf7ecab3fa72bc5dea263c0154 (patch)
tree6de54e74a303f77eb421af483dd71ae77f8a9bc3 /client
parenteae037c286e08d9f5f434f68048719df882f72b9 (diff)
downloadmariadb-git-15edd69ddf649ebf7ecab3fa72bc5dea263c0154.tar.gz
MDEV-27943 Reduce overhead of attaching THD to OS thread, in threadpoolbb-10.6-wlad
Avoid relatively expensive THD::store_globals() for every query in the threadpool. Use a lighter version instead, that only resets some thread local storage variables(THD, mysys, PSI), avoids some calculationms and caches syscall gettid (Linux only) in a thread_local variable. Also simplify Worker_context use, with RAII.
Diffstat (limited to 'client')
0 files changed, 0 insertions, 0 deletions