1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-19 19:03:26 +03:00
Files
mariadb/sql
unknown c545b02645 Fix for Bug #1952
"SHOW TABLE STATUS very slow w/large number of tables"
Replaced old algorithm which were used in my_dir() and stored
all information about directory entries in one chunk of memory
with new one which stores file names and MY_STAT structures in
separate memroot, so now we don't need to copy this data during
reallocation of dir_entry array.


include/my_dir.h:
  Changed mystat member of FILEINFO structure to pointer since 
  this prevents unneeded memory allocation and initialization.
  Added comment about new hidden members of MY_DIR structure.
mysys/my_lib.c:
  Replaced old algorithm in my_dir() which stored all information
  about directory entries in one chunk of memory with new one 
  which stores file names and MY_STAT structures in separate
  memroot. Now we don't copy this data during reallocation of 
  array with FILEINFO structures.
  Also tuned sizes of memory chunks during first-other
  reallocations (we suppose that we either have < 100 files 
  in the directory or > 1000 of them).
sql/sql_show.cc:
  Updated only place in code where mystat member
  of FILEINFO structure is used.
2003-12-12 03:39:29 +03:00
..
2002-07-23 18:31:22 +03:00
2003-07-01 14:38:38 +03:00
2003-06-24 10:53:21 +05:00
2003-04-26 14:54:53 +03:00
2003-03-13 13:44:03 +01:00
2003-01-05 20:18:49 +02:00
2003-04-23 21:52:16 +03:00
2003-07-14 15:53:50 +03:00
2003-01-28 17:42:08 +01:00
2002-07-23 20:39:36 +03:00
2003-01-28 08:38:28 +02:00
2003-06-11 20:09:37 +05:00
2003-08-20 16:25:44 +03:00
2003-01-28 08:38:28 +02:00
2003-06-19 12:38:14 -04:00
2003-05-07 19:01:45 +03:00
2003-04-23 21:52:16 +03:00
2003-11-02 16:38:27 +02:00
2003-10-31 23:20:23 +01:00
2003-07-14 10:12:05 +03:00
2002-11-29 16:40:18 +02:00
2003-07-14 10:12:05 +03:00
2003-11-18 17:31:17 +01:00
2003-04-23 21:52:16 +03:00
2003-12-12 03:39:29 +03:00
2003-08-20 20:16:37 +03:00
2003-12-09 20:49:48 +01:00
2003-12-02 21:05:40 +03:00
2003-10-29 14:23:35 +01:00