I can't think of any other disadvantages. Even if you never call clear_big_array, it might not matter, the memory will just stay allocated. Generally the program won't return memory to the OS until it exits, and if the OS needs the memory for something else it will just page it out.
If you give more details about exactly what you're doing, you might be able to get more specific advice.
In reply to Re: Re: Re: Design Question
by sgifford
in thread Design Question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |