
Show HN: simdown – use SIMD to parse Markdown at ~1 GB/s
The SIMD path currently needs arm64 (NEON) and GOEXPERIMENT=simd. I've only benchmarked on an Apple M4, but it should help on any arm64 chip (Graviton, Ampere, etc.). Elsewhere it falls back to a scalar path that does ~…
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
The SIMD path currently needs arm64 (NEON) and GOEXPERIMENT=simd. I've only benchmarked on an Apple M4, but it should help on any arm64 chip (Graviton, Ampere, etc.). Elsewhere it falls back to a scalar path that does ~300 MB/s, still ahead of cmark and goldmark.If you know of a faster CommonMark parser, please tell me and I'll add it to the benchmarks.Under the hood, it borrows a lot from this paper on using simd for json parsing: https://arxiv.org/abs/1902.08318 Comments URL: https://news.ycombinator.com/item?id=50236813 Points: 2
Comments: 0
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。