Siying Dong 0175d58c3c Make direct I/O write use incremental buffer
Summary:
Currently for direct I/O, the large maximum buffer is always allocated. This will be wasteful if users flush the data in much smaller chunks. This diff fix this by changing the behavior of incremental buffer works. When we enlarge buffer, we try to copy the existing data in the buffer to the enlarged buffer, rather than flush the buffer first. This can make sure that no extra I/O is introduced because of buffer enlargement.
Closes https://github.com/facebook/rocksdb/pull/2403

Differential Revision: D5178403

Pulled By: siying

fbshipit-source-id: a8fe1e7304bdb8cab2973340022fe80ff83449fd
2017-06-13 04:41:37 -07:00
..
2017-04-27 18:06:12 -07:00
2017-06-05 11:27:34 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-23 10:42:59 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-10 15:14:44 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-10 15:14:44 -07:00
2017-05-10 15:14:44 -07:00
2017-06-05 11:27:34 -07:00