Maybe. It might also hurt in a bad way. The compiler will try to inline 
almost all functions (assuming that your function are small) to optimize 
the code and the speed and then will might have to "deoptimize".

It is clearly explained here:
http://floitsch.blogspot.be/2012/03/optimizing-for-v8-inlining.html

Also a function might have some properties to be candidate to inlining. It 
is not just the size.

The best thing is to test it and check if it brings you a boost in 
performance for your application and if the memory used by your application 
did not increase dramatically (as inlining is almost as if you copy paste 
your function everywhere it is used).

Le vendredi 16 octobre 2015 21:30:13 UTC+2, Alisson Cavalcante Agiani a 
écrit :
>
> Say I want to increase it to 5000. Is it worth it?
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/be720f35-de89-446a-92dc-262747ae159f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to