RSS 2025-12-06 03:06
libraries

CGO noescape nocallback does they do anything?

来源:Reddit r/golang

I remember was hyped when these pragmas appeared, but does hey do anything? I still have entersyscall, exitsyscall ating considerable amount of time

Like for 4s of total call time, I have 0.5s for exitsyscall, 0.4s for entersyscall and 0.15s for some ospreenterexitenterblahblahblah...

Is there a way to remove these enter|exitsyscall ? m cgo code does not interact with go runtime in any way - just receive some parameters. Don't store any data from go, max it just process it, copy if needed and returns

Upd: screenshot of prof https://imgur.com/a/ZhtcHRr

submitted by /u/iga666
[link] [comments]