Skip to content Skip to sidebar Skip to footer
Showing posts with the label Garbage Collection

Javascript Memory Leak From Closure Lexical Environment

I am trying to understand why the following code causes a memory leak Here is the timeline showin… Read more Javascript Memory Leak From Closure Lexical Environment

Javascript Closures Concerning Unreferenced Variables

I'm aware of the great posts on Closures here and here, but neither seems to address the partic… Read more Javascript Closures Concerning Unreferenced Variables

Over How Much Of Its Enclosing Scope Does A (javascript) Closure Close?

When I have some function that uses variables from its enclosing scope(s) and use that function out… Read more Over How Much Of Its Enclosing Scope Does A (javascript) Closure Close?

Which Modern Browsers Use Mark And Sweep Algorithm For Garbage Collection?

While going through garbage collection, I came across Reference Counting and Mark & Sweep GC Al… Read more Which Modern Browsers Use Mark And Sweep Algorithm For Garbage Collection?

How Can I Destroy Threejs Scene?

I created a Threejs Scene, adding camera, lights and various objects. The question is simple: how c… Read more How Can I Destroy Threejs Scene?

Javascript Nested Function Performance

I have some nested functions such as var freak = function() { var die = function() { ... } … Read more Javascript Nested Function Performance