Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

V8’s incremental garbage collector: shorter pauses, better interactive performance

DZone's Guide to

V8’s incremental garbage collector: shorter pauses, better interactive performance

· Web Dev Zone ·
Free Resource

Deploying code to production can be filled with uncertainty. Reduce the risks, and deploy earlier and more often. Download this free guide to learn more. Brought to you in partnership with Rollbar.

Quoting “A game changer for interactive performance” by Vyacheslav Egorov and Erik Corry for The Chromium Blog:

Today we are announcing the release of Chrome’s new incremental garbage collector (GC) which dramatically improves interactive performance of web apps and HTML5 games.
...
Previously, garbage collection pause times depended on the amount of memory used. Therefore, large interactive apps were impacted by pauses that caused hiccuping. V8’s new GC reduces pause times dramatically[.]
...
In our testing the maximum time to render a frame including pause time is reduced from 272ms to 50ms.
For large memory sizes, don’t do everything at once, do it in several steps.

 

From http://www.2ality.com/2011/11/v8-incremental-gc.html

Deploying code to production can be filled with uncertainty. Reduce the risks, and deploy earlier and more often. Download this free guide to learn more. Brought to you in partnership with Rollbar.

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}