[MDEV-8010] Avoid sql_alloc() in Items Created: 2015-04-17 Updated: 2015-08-21 Resolved: 2015-08-21 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Fix Version/s: | 10.1.7 |
| Type: | Task | Priority: | Major |
| Reporter: | Sergey Vojtovich | Assignee: | Sergey Vojtovich |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Epic Link: | Performance: micro optimizations | ||||||||
| Sprint: | 10.1.7-2 | ||||||||
| Description |
|
sql_alloc() has additional costs compared to direct mem_root allocation:
It is called dozens of times implicitly by Items. Try to get rid of those calls. |
| Comments |
| Comment by Sergey Vojtovich [ 2015-08-11 ] |
|
monty, please review attached patch. |
| Comment by Michael Widenius [ 2015-08-13 ] |
|
Review done per email. Please fix the very few issues and then ok to push |
| Comment by Michael Widenius [ 2015-08-13 ] |
|
See email |