刚在npm上看到一个很有意思的 json module,据说解析速度比v8还快
发布于 11 年前 作者 lellansin 4190 次浏览 最后一次编辑是 8 年前

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

<h1>Why so fast?</h1>

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 回复

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

回到顶部