Zig libc rewrite lead to 12000x slowdown in SQLite

Was looking for a discussion on this article but hadn’t found one yet so creating one.

4 Likes

There’s a PR to solve some of these issues that was filed recently:

https://codeberg.org/ziglang/zig/pulls/37417

4 Likes

Reminds me of GTA 5’s infamous loading screen calling strlen over a 10MB dataset for every JSON value.

It sure would be nice if we had slices in C

1 Like

One of my few serious opinions about programming is that we as an industry dropped the ball on this one:

Had we done that by C11, there would have been much fewer problems today.

17 Likes