1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-15649 Speedup search in acl_users and acl_dbs array,

sorting them by usernames first, and then by get_sort() value.


Search functions now use binary search to find the the first entry with
given name. Then, linear search is done, until the first match.
This commit is contained in:
Vladislav Vaintroub
2018-11-26 21:24:05 +01:00
parent bb9b4182e4
commit f77895ebf3
5 changed files with 239 additions and 112 deletions

View File

@ -118,7 +118,7 @@ Con4 is alive
Con4 is alive
select current_user();
current_user()
root@2001:db8::6:6
root@santa.claus.ipv6.example.com
disconnect con4;
connection default;
"Dumping performance_schema.host_cache"
@ -155,7 +155,7 @@ Con5 is alive
Con5 is alive
select current_user();
current_user()
root@2001:db8::6:6
root@santa.claus.ipv6.example.com
disconnect con5;
connection default;
"Dumping performance_schema.host_cache"