3 ms·
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 ge
by ef4 11y ago
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.