point

 

 Remember me

Register  |   Lost password?


 

substructural blog header


Garbage Collection in JavaScript, Part 2

Wed, 20 Jun 2012 08:04:25 GMT

Of the Chrome V8 JavaScript JIT's 198kloc source (excluding comments), about 19kloc comprise the garbage collector. It is a generational Cheney copying collector with mark sweep. In October 2011 the V8 team added an incremental garbage collector to the mix. Incremental garbage collection contrasts with traditional stop-the-world garbage collection in that it is more amenable to low-latency applications requiring minimizing garbage collection pauses at the cost of reduced total throughput. The V8 garbage collector actually has a whole assortment of configurable flags (see shell --help). If these options can be tweaked, one can provide a customized JavaScript experience (especially garbage collector experience) tailored to the particular performance needs of the app.

Read more »

, , , , , , , , , , , , , ,