StringBuilder: Store the vector metadata inline instead of on the heap.
Currently the allocations look like: [StringBuffer (usually on stack)] -> [Buffer8/Buffer16] -> [vector backing store] This removes the middle allocation, which makes all operations except swap simpler and more local. Change-Id: Ic9536dfb4f5fc905d99477f088d6ba8e0945b573 Reviewed-on: https://chromium-review.googlesource.com/1110257Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Jeremy Roman <jbroman@chromium.org> Cr-Commit-Position: refs/heads/master@{#569475}
Showing
Please register or sign in to comment