Does it make sense to minify code used in NodeJS?

前端 未结 4 1435
礼貌的吻别
礼貌的吻别 2020-11-30 01:35

I was wondering, since Clojure Compiler and UglifyJS not only optimize code for size but also for performance (although I think size is the main priority), would my node.js

4条回答
  •  眼角桃花
    2020-11-30 02:05

    No longer true.

    Yes, Node6 is now based on v8 5.1, which use TurboFan. As the v8 team stated (https://bugs.chromium.org/p/v8/issues/detail?id=3354) they dropped the character count trigger for inlining.

    https://medium.com/@c2c/yes-node6-is-now-based-on-v8-5-1-7a645eb9992b https://bugs.chromium.org/p/v8/issues/detail?id=3354

提交回复
热议问题