frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Stb_XML – A 6KB XML parser that's 193× faster than libxml2

2•DenisDolya•1d ago
I built stb_xml because I needed something faster than libxml2 for embedded work – it's a single-header XML parser that parses 1MB XML at 8,700 MB/sec (193× faster than libxml2) while being only 1.5KB (333× smaller). It achieves this through zero-copy parsing, zero allocations, and 6-byte tokens, trading full XML spec compliance for extreme speed and minimal footprint. All benchmark results are in output_tests.txt.

GitHub: https://github.com/Ferki-git-creator/stb_xml