aboutsummaryrefslogtreecommitdiff
path: root/butl/fdstream
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-09-14 22:17:29 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-09-16 12:56:58 +0300
commit60dfe51f11d247f8490f54b4441a4fda14d6c66a (patch)
tree7392216579201e3be49a0498ade221c981fcf59b /butl/fdstream
parent985f1dde6afa6a42149118e6085325eacb1bd53e (diff)
Optimize fdstream so performance is on par with fstream
Diffstat (limited to 'butl/fdstream')
-rw-r--r--butl/fdstream5
1 files changed, 4 insertions, 1 deletions
diff --git a/butl/fdstream b/butl/fdstream
index bb5364b..49b3d4d 100644
--- a/butl/fdstream
+++ b/butl/fdstream
@@ -86,13 +86,16 @@ namespace butl
virtual int
sync ();
+ virtual std::streamsize
+ xsputn (const char_type*, std::streamsize);
+
private:
bool
save ();
private:
int fd_ = -1;
- char buf_[4096];
+ char buf_[8192];
};
// File stream mode.