News for hackers. Stuff that matters.

ballbitshark

Re:SQLite in Go, with and Without Cgo on Friday May 13, 2022 @08:21AM (#31366601)
The main reason why I personally try to avoid adding non-go languages to my go projects is because it tends to make profiling / debugging a bit of a pain. pprof has limited vision into any external C threads so all you can see is the function call and the time goroutines spent off-cpu while waiting for it to finish. You can obviously supplement some of that with other tools (perf), but sometimes accepting the tradeoffs and using a Go implementation of the package instead just makes more sense.