Performance

unnest callbacks
Unnest callbacks
Akbar S. Ahmed | Apr 30, 2014

Improve Node.js performance

Unnesting callbacks in JavaScript involves changing anonymous functions to named functions. It also requires that we unnest the callback function from the original function’s list of arguments by passing the callback’s name as the argument (vs. an inline function). The following pseudo code highlights unnesting: // Nested, anonymous callback function someFun(1, 2, function() { // I am now in the anonymous callback function ... }); // Unnested named callback function someFun(1, 2, namedCallback); function namedCallback() { // I am now in the named, unnested callback function ...

Read more



nodeday 2014: performance sins of our abstractions
NodeDay 2014: Performance Sins of our Abstractions
Akbar S. Ahmed | Apr 20, 2014

Node.js performance tips

Fine tuning your deployment for maximum performance is always a top priority. Node.js’ chief mechanic shows you how to put the pedal to the metal. Speaker Name: Trevor Norris Title: NodeJS Core Maintainer Company: Mozilla Twitter: trevnorris Slides: Performance Sins of our Abstractions My $.02. Trevor is smart. Really, really smart. This talk was amazing and will be basis for some follow-up posts (once I have a chance to grok everything he discussed.) Run node with --gdbjit --gdbjit-full How to inspect JS in gdb dgd -d lib/ -d src/ Quick v8 performance tips inlined functions cannot contain more than 600 chars (including comments).

Read more



Contact Information

ABOUT EXPONENTIAL.IO

We specialize in helping professional developers, like you, expand your skill set. Our courses are focused on enabling you to learn everything necessary to use a new technology in a live, production application.

LOCATION

All courses are made with love in
Palo Alto, CA.

Subscribe to our newsletter