跳到主要内容
CNode

刚在npm上看到一个很有意思的 json module,据说解析速度比v8还快

社区
Llellansin发布于 13 年前最后回复 13 年前
245810

名字叫 json-- 其实这个减号也是有意思的,作者原话,翻译不怎么样直接上原文

Why so fast?

The trick that made this sped up is that, it only parses the parts that are in the path, and it skips the parts that is not in the specified path with a simple code without verifying it. This is very experimental, and this skipping might result in an undefined state if it tries to parse an invalid JSON string.

所以取名叫 json-- 了

npm: https://npmjs.org/package/json-- github: https://github.com/alFReD-NSH/JSON--

查看回复

回复 (2)

Y
youxiachai#213 年前

不通用....

H
hexie#113 年前

模块名字 有一种淡淡的忧伤

参与回复

登录后即可参与回复。登录