Posted in

Go高性能IO终极形态:io_uring绑定(golang.org/x/sys/unix实验包)、zero-copy socket sendfile、mmap文件读取吞吐提升4.2倍实测

第一章:Go高性能IO终极形态: … Go高性能IO终极形态:io_uring绑定(golang.org/x/sys/unix实验包)、zero-copy socket sendfile、mmap文件读取吞吐提升4.2倍实测Read more

Posted in

Go语言文件I/O性能陷阱:os.ReadFile vs bufio.Scanner vs io.CopyBuffer vs mmap —— 大文件读取吞吐与内存占用实测对比

第一章:Go语言文件I/O性能陷 … Go语言文件I/O性能陷阱:os.ReadFile vs bufio.Scanner vs io.CopyBuffer vs mmap —— 大文件读取吞吐与内存占用实测对比Read more

Posted in

【Go语言CC生产环境红线手册】:禁止在CGO中使用malloc/free!替代方案benchmark:sync.Pool vs C.malloc vs mmap(MAP_ANONYMOUS)

第一章:CGO内存管理的生产环境 … 【Go语言CC生产环境红线手册】:禁止在CGO中使用malloc/free!替代方案benchmark:sync.Pool vs C.malloc vs mmap(MAP_ANONYMOUS)Read more