The cost of JavaScript in 2019 · V8 (v8.dev)
IngramChen 積分 1

JSON.parse('{"foo":42,"bar":1337}'); 這個居然比 json literal 還快,WTF

andyang 積分 0 編輯於


rein 積分 0

surma1 :

This is only relevant if:

➡️ You have big objects in your code.

➡️ Parsing is your bottle neck.

➡️ These big objects can be sufficiently represented in JSON.