If I have an ArrayList with several elements and I want to clear all elements should I:
- point it to a new reference? Will this call the GC? In Android calling the GC is not so good.
- call arraylist.clear(). Does clear itself call the GC to free the memory?
What about if the arraylist is really huge? I think clear has bad performance when the arraylist is huge. So it is better to point to a new reference and just let the GC do its work?