← All projects
Project record1 mention
Originally shared on Hacker News

simdown

simdown is a Markdown parser that uses SIMD instructions to parse Markdown at ~1 GB/s on arm64 (NEON), with a scalar fallback path running at ~300 MB/s.

Last shared
01 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. simdown

    simdown is a Markdown parser that uses SIMD instructions to parse Markdown at ~1 GB/s on arm64 (NEON), with a scalar fallback path running at ~300 MB/s.

    Posted by @trevorah · Original source ↗

    Story title · @trevorah · · Source ↗

    Show HN: simdown – use SIMD to parse Markdown at ~1 GB/s

    Submitted URL · @trevorah · · Source ↗

    https://github.com/trevorah/simdown

    Source text · @trevorah · · Source ↗

    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.