]> Sergey Matveev's repositories - public-inbox.git/commitdiff
ds: reduce overhead of tempfile creation
authorEric Wong <e@80x24.org>
Mon, 24 Jun 2019 02:52:58 +0000 (02:52 +0000)
committerEric Wong <e@80x24.org>
Mon, 24 Jun 2019 05:26:39 +0000 (05:26 +0000)
We end up buffering giant things to the FS sometimes, and open()
is not a cheap syscall; so being forced to do it twice to get a
file description with O_APPEND is gross when we can just use
O_EXCL ourselves and loop on EEXIST.


No differences found