What is the cost of increasing max_inlined_source_size

84 views
Skip to first unread message

Ω Alisson

unread,
Oct 16, 2015, 3:30:13 PM10/16/15
to nod...@googlegroups.com
Say I want to increase it to 5000. Is it worth it?

Michael Mathy

unread,
Oct 18, 2015, 11:31:18 PM10/18/15
to nodejs
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:

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).

Ω Alisson

unread,
Oct 19, 2015, 10:50:50 PM10/19/15
to nodejs
I raised the limit to 6 million characters on a complex system. No memory increase, huge boosts

--
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+un...@googlegroups.com.
To post to this group, send email to nod...@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 all
Reply to author
Forward
0 new messages