garbage collection in javascript?

Programming forum

garbage collection in javascript?

Postby John » Mon Apr 07, 2014 11:33 am

Why use garbage collection in javascript?
John Abraham
John
 
Posts: 419
Joined: Wed Jun 05, 2013 9:15 pm

Re: garbage collection in javascript?

Postby John » Mon Apr 07, 2014 11:34 am

It’s absolutely important you make your objects eligible for garbage collections. You can’t assume visitors will only have your site open. They can have multiple tabs open and probably a program or 2 running in the background. If your site uses too much memory, then it can crash their browser. By removing objects that you no longer need, you can greatly enhance the performance of your site.
John Abraham
John
 
Posts: 419
Joined: Wed Jun 05, 2013 9:15 pm


Return to Programming

cron