Back to photostream

Hooray for JS + DOM garbage collection

Here's more ammo suggesting the behaviour I'm seeing on an OS X machine is perhaps OS and/or hardware-specific.

 

Test case: Start the game, fire the machine gun (new JS objects and nodes), and wait to confirm that they are properly reclaimed.

 

In this screenshot, you can see DOM nodes created for machine gun ammunition are garbage collected once things settle down. A forced GC at the end captured a little more.

 

A simple test page is here.

2,748 views
0 faves
2 comments
Uploaded on October 5, 2013