Re:SQLite in Go, with and Without Cgo
by apayan on Friday May 13, 2022 @02:13PM
(#31370835)
Interesting! I've never considered batching my calls to SQLite from Go that way. Do you have any numbers you can share about performance when doing that?
[ Parent
| on HN ]
I don't, but I'm general it matters most for the cheapest C calls, so the functions doing the least work. Batching those somehow can give big speedups, over 2x, depending on how much of the total time was going into cgo overhead.