Say I have:
string foo = <a string that is 1 million chars long>;
then later I want no longer need the long foo, and would like that memory back. Is there a way to tell foo to be smaller?
It seems that regardless of what I do, foo.capacity() remains 1 million. Surely there's a way to clear its memory, without destroying it, yes?