Memory de-allocation question
- Posted by xecronix 3 weeks ago
- 213 views
Let's say I have a global sequence that contains 50K small sequences. Each of the 50K sequences is unique.
sequence s = make_crazy_sequence(50000)
I don't know exactly how much memory s takes up, but let's say it's enough to matter but not enough to be a significant problem on a modern PC.
What happens when I do this later?
s = {} -- does this free most of the memory? If so, instantly or eventually?
And a couple of follow-ups. Since s is a global, I might be incorrect in assuming there isn't a way to totally annihilate and free s. Am I? Do Phix and Euphoria behave differently?
Thanks.