Tool to automatically inline JavaScript function calls?

前端 未结 2 701
暗喜
暗喜 2021-01-17 15:02

Inlining JavaScript function calls speeds up the execution and also reduces the code size after gzipping, as described in this article:

http://blog.calyptus.eu/seb/2

2条回答
  •  甜味超标
    2021-01-17 15:34

    Let the JIT figure things like inlining out fr you. Inlining can easily worsen the performance by killing cache performance.

    Also, unless you have identified the actual bottlenecks, doing premature optimization like this is hardly ever worth it.

提交回复
热议问题