Does anyone know if there's any benefit in 'minifying' locally-stored javascript code to squeeze more performance out of the javascript engine?
Usually minification is done to reduce bandwidth requirements/costs, or obfuscation, but would there actually be any performance benefits?
In other words, does this code:
let i=[1,2,3,4,5,6];let r=i.map(function(e){return e*e;});
..run faster than this code:
let inputData = [ 1, 2, 3, 4, 5, 6];
let squaresOfInputData = inputData.map( function square(element)
{
return element * element;
}
Of course algorithm choice will make the biggest difference, but we have megabytes of verbose javascript, so would, e.g. a 'minify' build step help overall performance?