node.js - Enforce inlining of functions in CoffeeScript or JavaScript -


i'm trying structure code in many short functions, readable without many comments, due flow of functions , variable. last year implementing high performance application in c structured same way, avoid function calls, annotated virtually every function inline.

now i'm writing nodejs application in coffeescript , have structured part of code in tens of small functions called loops. aggregate few hundred - few thousand function calls - depending on size of data-structure. since functions merged 1 bigger one, calls avoided, degrade quality of code.

i've found on reference extreme javascript performance, presentation 2009 , shows huge performance improvement when inlining functions on firefox , ie, noticeable improvement chrome , safari. 5 years ago , js-engines improving time, question is:

is possible enforce inlining of functions when coffeescript creates js or in js parser, specific keyword or parameter?

or should wait v8 engine realise , handle automatically (or maybe done already)?


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -