1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Speed and code space optimziation:

- Cache variables.lc_messages->errmsgs->errmsgs in variables.errmsgs

This gives us 15 byte less code space and 2 memory references for any access to language dependent message,
of which there are 500 in the server..
This commit is contained in:
Monty
2015-07-09 13:09:36 +03:00
parent 7332af49e4
commit a6c8014387
4 changed files with 19 additions and 5 deletions

View File

@ -644,6 +644,8 @@ typedef struct system_variables
/* Error messages */
MY_LOCALE *lc_messages;
const char **errmsgs; /* lc_messages->errmsg->errmsgs */
/* Locale Support */
MY_LOCALE *lc_time_names;