From 60dfe51f11d247f8490f54b4441a4fda14d6c66a Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 14 Sep 2016 22:17:29 +0300 Subject: Optimize fdstream so performance is on par with fstream --- butl/fdstream | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'butl/fdstream') 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. -- cgit v1.1