Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

fread is (usually) buffered io, so it actually does two additional mem copies (kernel to FILE buffer then to user buffer)


Not in Go


oh, right, this is Go (https://pkg.go.dev/github.com/odeke-em/go-utils/fread#sectio...). Do the strings it return share memory with the internal buffer?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: