diff options
author | marko@hundin.mysql.fi <> | 2005-03-09 22:04:55 +0200 |
---|---|---|
committer | marko@hundin.mysql.fi <> | 2005-03-09 22:04:55 +0200 |
commit | 6920a6d5466b0241286051bb327d32bf2fdfa4dc (patch) | |
tree | 806419ee88dc7ceffd87a90fcca8906aaa409538 /innobase/row/row0mysql.c | |
parent | 79573a5ee8ab6a2fb2151207a69a9577130ac212 (diff) | |
download | mariadb-git-6920a6d5466b0241286051bb327d32bf2fdfa4dc.tar.gz |
InnoDB: Improve performance by about 10% by removing implicit
memcpy() calls, by not initializing the offsets_[] arrays.
InnoDB: Remove a Microsoft compiler warning in page0page.c.
Diffstat (limited to 'innobase/row/row0mysql.c')
-rw-r--r-- | innobase/row/row0mysql.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/innobase/row/row0mysql.c b/innobase/row/row0mysql.c index 1ee3f7d380e..fd8c2b060ef 100644 --- a/innobase/row/row0mysql.c +++ b/innobase/row/row0mysql.c @@ -3673,8 +3673,9 @@ row_scan_and_check_index( ibool contains_null; ulint i; mem_heap_t* heap = NULL; - ulint offsets_[100] = { 100, }; + ulint offsets_[100]; ulint* offsets = offsets_; + *offsets_ = (sizeof offsets_) / sizeof *offsets_; *n_rows = 0; |