@wishall
I write code...
I am Software Developer from Bengaluru, Inidia.
I am available for collaboration and open source contributions.
it depends on the programming language as well as the size of the source code. Java's garbage collection is faster as compared to others. But I would suggest instead of making the objects and variables available for garbage collection, use a centralized pool and release this variable into that pool, so that other parts of the program can re-use the memory. If you want to see how much time is being taken by the garbage collector in your program, you can use the profiling tab to check in the Chrome's developer tools.