Re:Backdooring JavaScript using minifier bugs
by ef4 on Monday August 24, 2015 @01:31PM
(#10111536)
This may sound entirely wacky, but I have seen it make a major performance impact on nodejs.
The reason is that V8 uses heuristics to decide which functions get inlined, and the raw source code length is one of the heuristics. Making the source for a function shorter may cause V8 to inline it more aggressively.
The reason is that V8 uses heuristics to decide which functions get inlined, and the raw source code length is one of the heuristics. Making the source for a function shorter may cause V8 to inline it more aggressively.