Bug #69606 | Wasted work in method pretty_print_string() | ||
---|---|---|---|
Submitted: | 27 Jun 2013 19:11 | Modified: | 9 Jan 2015 16:23 |
Reporter: | Po-Chun Chang (OCA) | Email Updates: | |
Status: | Unsupported | Impact on me: | |
Category: | MySQL Cluster: Cluster (NDB) storage engine | Severity: | S5 (Performance) |
Version: | 5.6, 5.7 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | patch, performance |
[27 Jun 2013 19:11]
Po-Chun Chang
[27 Jun 2013 19:12]
Po-Chun Chang
Suggested patch (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: patch.diff (text/plain), 502 bytes.
[28 Jun 2013 15:48]
MySQL Verification Team
Hello Chang, Thank you for the report and contribution. Thanks, Umesh
[14 Aug 2013 9:46]
Magnus BlÄudd
The for loop in question is also used to count the length of the string to print(in the "len" variable) and thus performs useful work. Can the tool be updated to detect this?