Thanks for the rabbit hole. The faq linked golang CGo issue [0] features `mattn/go-sqlite` too. It appears there is a particular impact for repeatedly calling any C that takes longer than ~20µs but that issue doesn't really try to quantify general CGo impact.
In my entirely unscientific go test on 100000 incremented integers, it's look like "some" impact.
In my entirely unscientific go test on 100000 incremented integers, it's look like "some" impact.
It probably doesn't matter a huge amount for the ad hoc `dsq` use, having them available is better than not.[0]: https://github.com/golang/go/issues/19574