]> Sergey Matveev's repositories - public-inbox.git/commit
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)
commit01d8132315e855bf35fa655f19741c2206f97ddc
tree2c5631ce20e1c173d4ef1e68f914bcd7c6d61842
parent19382e401c5fe158200ba43c204875e368158374
ds: reduce overhead of tempfile creation

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.
lib/PublicInbox/DS.pm