Bug #70402 | new deprecation warnings introduce unwanted performance degradation side-effect | ||
---|---|---|---|
Submitted: | 23 Sep 2013 21:35 | Modified: | 12 Nov 2013 1:47 |
Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Errors | Severity: | S5 (Performance) |
Version: | 5.7.2 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[23 Sep 2013 21:35]
Shane Bester
[23 Sep 2013 21:41]
MySQL Verification Team
5.7.3 profile
Attachment: bug70402.png (image/png, text), 24.71 KiB.
[23 Sep 2013 21:55]
MySQL Verification Team
i wonder why we use expensive *sprintf* type of functions when a static string could somehow be constructed at compile time?
[4 Oct 2013 8:25]
Tor Didriksen
The WARN_DEPRECATED macro evaluates to this: if (((THD *) thd) != __null) push_warning_printf(((THD *) thd), Sql_condition::SL_WARNING, 1287, _current_thd()->variables.lc_messages->errmsgs->errmsgs[(1287) - 1000], ("DECODE"), ("AES_DECRYPT")); As you can see, we do a lookup in some error message array. I presume this can be configured at runtime to select warnings in different languages. The use of _current_thd, should go away though.
[12 Nov 2013 1:47]
Paul DuBois
Noted in 5.7.3 changelog. Overhead for deprecation warnings was reduced.