Re:Chromium: Substring of string retains string in memory
by rini17 on Saturday November 01, 2025 @08:07AM
(#45781021)
But having only one reference is rare, often you extract several pieces of data from a huge string.
Unless the underlying storage is reference counted with some small granularity. That might be a way to go, when a substring is taken, split the original and keep track of the pieces separately.
Unless the underlying storage is reference counted with some small granularity. That might be a way to go, when a substring is taken, split the original and keep track of the pieces separately.