<story><title>Backdooring JavaScript using minifier bugs</title><url>https://zyan.scripts.mit.edu/blog/backdooring-js/</url></story><parent_chain><item><author>phpnode</author><text>&amp;gt; Is there any benefit to it?&lt;p&gt;Well, in theory yes. When determining whether a specific function can be inlined into its call site, V8 looks at the length of the function &lt;i&gt;source code&lt;/i&gt; to try and guess whether it&amp;#x27;s worth it. Functions longer than 600 characters (including comments) cannot be inlined and therefore they will typically be slower.&lt;p&gt;Whether that makes any meaningful difference to your application performance really depends on the application. In most cases it won&amp;#x27;t.</text></item><item><author>yoz-y</author><text>I wonder. Should one ever use minified javascript code on a server? Assuming that you are using it on your own server and not distributing the code to clients.&lt;p&gt;Is there any benefit to it?</text></item></parent_chain><comment><author>joepie91_</author><text>You can also just set a flag that changes that maximum length - there&amp;#x27;s more about that here: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;www.youtube.com&amp;#x2F;watch?v=FXyM1yrtloc&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;www.youtube.com&amp;#x2F;watch?v=FXyM1yrtloc&lt;/a&gt;&lt;p&gt;You certainly don&amp;#x27;t need server-side minification.</text></comment>
<story><title>Backdooring JavaScript using minifier bugs</title><url>https://zyan.scripts.mit.edu/blog/backdooring-js/</url></story><parent_chain><item><author>phpnode</author><text>&amp;gt; Is there any benefit to it?&lt;p&gt;Well, in theory yes. When determining whether a specific function can be inlined into its call site, V8 looks at the length of the function &lt;i&gt;source code&lt;/i&gt; to try and guess whether it&amp;#x27;s worth it. Functions longer than 600 characters (including comments) cannot be inlined and therefore they will typically be slower.&lt;p&gt;Whether that makes any meaningful difference to your application performance really depends on the application. In most cases it won&amp;#x27;t.</text></item><item><author>yoz-y</author><text>I wonder. Should one ever use minified javascript code on a server? Assuming that you are using it on your own server and not distributing the code to clients.&lt;p&gt;Is there any benefit to it?</text></item></parent_chain><comment><author>Kenji</author><text>That&amp;#x27;s really odd. In my eyes, source code length is not a good way to measure the semantic size of a function. But what you&amp;#x27;re saying is very interesting; I learned something new.</text></comment>