Jaideep Singh - Memory profile your JavaScript applications for high performance

3,436 views · Published 23 September 2013 · 35:33 · Indexed 14 November 2026

Channel: Hasgeek TV · 2013 · Science & Technology

Watch on YouTube

This session attempts to enable the developers to understand the javascript garbage collector, analyze the memory usage of their applications, the various factors which affect the memory usage and performance, detecting memory leaks and dealing with them, and some best practices for writing memory efficient javascript.

As the browsers continue to evolve and become more powerful, the application architectures tend to move more towards the client than the server, enabling the browser to do most of the heavy lifting, while providing a seamless experience to the users. However, as the applications grow, so does their memory footprint.

It becomes very essential to understand the internals of javascript garbage collector in order to write memory efficient code. Also, it is possible to look at the different parts of javascript memory usage like DOM nodes and events.

We'll be taking a look at some of the real applications and analyzing them for memory leaks. Also, we'll find out the real reasons behind the leaks, fix them and profile the application to compare the results.

Finally, we'll observe some of the common mistakes which lead to memory leaks in javascript and how to avoid those.

More from this channel