Go 1.24 is supposed to be releasing any day now and it includes support for new two new annotations #cgo noescape and #cgo nocallback (see https://tip.golang.org/doc/go1.24#cgo).
I'm not sure to which degree these are relevant for us but if they are, then we should likely be able to squeeze a but more performance out of the package.