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

Requestanimationframe Garbage Collection

I'm profiling the following code's memory usage using the Timeline in Chrome Dev Tools v27.… Read more Requestanimationframe 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?

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?

How Can I Log What Is Being Garbage Collected In My Javascript Code?

I've built an application that wastes 40% of its time collecting garbage, and I'm at my wit… Read more How Can I Log What Is Being Garbage Collected In My Javascript Code?

Rxjs - Do I Need To Unsubscribe

If I have something like this: class MyComponent { constructor() { this.interval = Observba… Read more Rxjs - Do I Need To Unsubscribe

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

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?