[C++] Let StringBuilder be constructible with a pre allocated buffer for character data
This is useful for example when an existing buffer can be immediately reused. This is currently used for storage of strings in json parsing, so it'd be straightforward to refactor into a constructor of StringBuilder.
Reporter: Ben Kietzman / @bkietz
Note: This issue was originally created as ARROW-4698. Please see the migration documentation for further details.
Antoine Pitrou / @pitrou: Do you still need this?
Another possibility would be to implement a caching memory pool (ARROW-3406).
Wes McKinney / @wesm: This seems hypothetically useful to avoid an extra copy step if you have a partially-constructed MutableBuffer that you wish to continue appending to. The construction requirements are a bit onerous though, since the internal state of the builder needs to be exactly right
Antoine Pitrou / @pitrou: The first step here may be to add this functionality to BufferBuilder / TypedBufferBuilder.
This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this improvement is still desired but has no current owner, please add the 'Status: needs champion' label.