summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2014-12-02 15:03:35 +0400
committerSergey Vojtovich <svoj@mariadb.org>2014-12-05 11:01:50 +0400
commit974808772b63563d031f687fd0fd158f83eb94aa (patch)
treee0013411d59f7afaba7dd023ffa48af04ea4eb3f /sql
parent9e9f1da0d2dd5d9de9094d20d0b39e71ec4ce479 (diff)
downloadmariadb-git-974808772b63563d031f687fd0fd158f83eb94aa.tar.gz
MDEV-7004 - Merge scalability fixes from 10.0-power
All callers of open_cached_file() use 2 characters prefix. Allocating memory for such short string is an overkill. Store it on IO_CACHE structure instead. All callers of open_cached_file() use mysql_tmpdir as dir. No need to allocate memory for it since it is constant and available till server shutdown. This reduces number of allocations from 31 to 27 per OLTP RO transaction.
Diffstat (limited to 'sql')
0 files changed, 0 insertions, 0 deletions