Bug #60227 | Much overhead for MD5() and SHA1() on short strings | ||
---|---|---|---|
Submitted: | 23 Feb 2011 21:56 | Modified: | 11 Jun 2012 16:37 |
Reporter: | Linhai Song | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: DDL | Severity: | S5 (Performance) |
Version: | 5.1.54, 5.5.26 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | Contribution, md5, performance, sha1 |
[23 Feb 2011 21:56]
Linhai Song
[12 Mar 2011 20:06]
Linhai Song
What does tag "contribution" mean? I have done some unit tests, and results show that the patch will work better than calling sprintf. But code fragment I report is only executed once when executing "ALTER VIEW" command. I think using patch may make the performance only a little better.
[26 May 2012 10:38]
Valeriy Kravchuk
Still same suboptimal code is used in 5.5.26. Time to fix this.
[11 Jun 2012 16:37]
Paul DuBois
Noted in 5.6.6 changelog. The MD5() and SHA1() functions had excessive overhead for short strings.