x/sys/unix: Pwritev and Preadv always allocate #57296
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Performance
Milestone
What version of Go are you using (
go version
)?But for sys/unix:
Does this issue reproduce with the latest release?
n/a
What operating system and processor architecture are you using (
go env
)?n/a
What did you do?
Wrote a program that regularly calls
unix.Pwritev
with a similar number of discontinuous buffers.What did you expect to see?
A way to call
Pwritev
without allocating a slice ofIovecs
each time.What did you see instead?
No way to do that.
I agree that using
[][]byte
is nicer, but unless thePreadv
,Pwritev
, etc. maintain a cache ofIovec
s, each call necessarily allocates.The text was updated successfully, but these errors were encountered: