|
Garbage collector and its impacts
Hi everybody,
I have a basic doubt regarding garbage collector. i am aware that garbage collector will sweep all the unreferenced references(pointing to null) when it runs. Also i have heard that nobody can predict when the garbage collector will run.. In my project i have so many unreferenced variables. What i think is, when the amount of unreferenced variables in my application increases to a huge size, garbage collector will start to run and sweep all the unreferenced variables. but because of this, will there by any slowness in the application? I perceive that when the garbage collector runs, all applications tends to slow down.. correct me if my perception is wrong!!
|