My understanding of JavaScript “compilation” is that it condenses and minifies your code to ultimately save bytes.
Does either condensing or minification make JavaScript run any faster?
Take the following examples for consideration:
var abcdefghijklmnopqrstuvwxyz = 1;
// vs.
var a=1;
var b = function() {
// Here is a comment
// And another
// White space
return true;
};
// vs.
var b=function(){return true}
I ran these examples through jsPerf with little or no difference.
Can compilation of JavaScript make it any faster or slower, in addition to saving bytes?