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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -