Shlemiel the Painter Is Back: How Zig's Libc Rewrite Made SQLite 12,000× Slower
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
Zig's pure-Zig rewrites of several libc string functions (strspn, strcspn, strpbrk, strstr) measure the full string length on every call, so tokenizers that repeatedly call them on large inputs slow down quadratically.