3 ms·
Not really. It's only a reference to the original string, a start index, and an end index. It doesn't store a second (partial) copy of the string.
by selcuka 4y ago
Not really. It's only a reference to the original string, a start index, and an end index. It doesn't store a second (partial) copy of the string.