[MDEV-7063] Split String into logical components Created: 2014-11-10 Updated: 2023-12-22 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | 11.5 |
| Type: | Task | Priority: | Minor |
| Reporter: | Alexander Barkov | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Epic Link: | Data type cleanups | ||||||||||||||||||||
| Sprint: | 10.1.7-2 | ||||||||||||||||||||
| Description |
|
The string class currently consists of the following components:
Storage engines (e.g. ConnectSE) often need String-alike classes, but cannot use the current String implementation because of their own memory management system. So they have to reimplement the same set of functionality, but with their own memory managers. This is bug prone and makes duplicate code. Also, in some cases it is useful to have character-set unaware strings (just array of bytes), and static strings without allocation. This task is to split String into logical pieces: 1. class Static_binary_string ConnectSE will use #5 (templace class String_with_alloc), in combination with their own memory allocator. |