diff options
author | Michael Widenius <monty@mariadb.org> | 2020-07-27 18:46:37 +0300 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2020-08-04 17:27:32 +0200 |
commit | 58e759a9393f76e558c016a3f84656401b9de1ce (patch) | |
tree | 10b2fe07a91372850d00d2c405b95c0ae240833c /storage/myisammrg | |
parent | 48b5777ebda9bf14c60ad05298dac67933e9799f (diff) | |
download | mariadb-git-58e759a9393f76e558c016a3f84656401b9de1ce.tar.gz |
Added 'final' to some classes to improve generated code
Final added to:
- All reasonable classes inhereted from Field
- All classes inhereted from Protocol
- Almost all Handler classes
- Some important Item classes
The stripped size of mariadbd is just 4K smaller, but several object files
showed notable improvements in common execution paths.
- Checked field.o and item_sum.o
Other things:
- Added 'override' to a few class functions touched by this patch.
- Removed 'virtual' from a new class functions that had/got 'override'
- Changed Protocol_discard to inherit from Protocol instad of Protocol_text
Diffstat (limited to 'storage/myisammrg')
-rw-r--r-- | storage/myisammrg/ha_myisammrg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/myisammrg/ha_myisammrg.h b/storage/myisammrg/ha_myisammrg.h index d5d62a002aa..6da327ec84b 100644 --- a/storage/myisammrg/ha_myisammrg.h +++ b/storage/myisammrg/ha_myisammrg.h @@ -68,7 +68,7 @@ public: }; -class ha_myisammrg: public handler +class ha_myisammrg final : public handler { MYRG_INFO *file; my_bool is_cloned; /* This instance has been cloned */ |