arrow icon indicating copy to clipboard operation
arrow copied to clipboard

[C++] Let StringBuilder be constructible with a pre allocated buffer for character data

Open asfimport opened this issue 6 years ago • 4 comments

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.

asfimport avatar Feb 27 '19 19:02 asfimport

Antoine Pitrou / @pitrou: Do you still need this?

Another possibility would be to implement a caching memory pool (ARROW-3406).

asfimport avatar Apr 17 '19 15:04 asfimport

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

asfimport avatar Apr 22 '19 14:04 asfimport

Antoine Pitrou / @pitrou: The first step here may be to add this functionality to BufferBuilder / TypedBufferBuilder.

asfimport avatar Aug 04 '21 10:08 asfimport

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.

github-actions[bot] avatar Dec 13 '25 11:12 github-actions[bot]