Merge lp:~vlad-lesin/percona-server/5.1-gca-bug-1038940-table_cache_speed_up into lp:percona-server/5.1
Status: | Work in progress |
---|---|
Proposed branch: | lp:~vlad-lesin/percona-server/5.1-gca-bug-1038940-table_cache_speed_up |
Merge into: | lp:percona-server/5.1 |
Diff against target: |
441 lines (+185/-99) 10 files modified
Percona-Server/storage/myisam/ha_myisam.cc (+4/-0) Percona-Server/storage/myisam/mi_close.c (+1/-1) Percona-Server/storage/myisam/mi_dbug.c (+3/-3) Percona-Server/storage/myisam/mi_keycache.c (+3/-3) Percona-Server/storage/myisam/mi_open.c (+67/-13) Percona-Server/storage/myisam/mi_panic.c (+92/-75) Percona-Server/storage/myisam/mi_static.c (+1/-1) Percona-Server/storage/myisam/myisamchk.c (+6/-0) Percona-Server/storage/myisam/myisamdef.h (+3/-3) Percona-Server/storage/myisam/myisampack.c (+5/-0) |
To merge this branch: | bzr merge lp:~vlad-lesin/percona-server/5.1-gca-bug-1038940-table_cache_speed_up |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Laurynas Biveinis (community) | Needs Fixing | ||
Stewart Smith | Pending | ||
Review via email: mp+141711@code.launchpad.net |
Description of the change
This MP is port of this http://
Jenkins test:
http://
This is just copy of this https:/
Unmerged revisions
- 510. By Vlad Lesin
-
Fix for bug #1038940.
As the number of open tables is increased, table lookup
(testing if a table is already open) and (in particular)
the case when a table is not open, became increasingly more
expensive.The problem was caused by the open table lookup mechanism,
which was based on traversing a linked list comparing the
file names.As the list was replaced by a hash table, the lookup
time dropped significantly when used on systems with
a large number of open tables.The original patch can be found here:
http://lists.mysql. com/commits/ 121507
5.5 MP can be found here: https:/ /code.launchpad .net/~vlad- lesin/percona- server/ 5.5-bug- 1038940- table_cache_ speed_up/ +merge/ 141748