Skip to content

Commit

Permalink
bytes_ostream: increase max chunk size to 128 kB
Browse files Browse the repository at this point in the history
128 kB is the size of the LSA segment and therefore the default size of
any kind of chunks, fragments and buffers.

Message-Id: <20180709155615.22500-1-pdziepak@scylladb.com>
  • Loading branch information
pdziepak authored and avikivity committed Jul 9, 2018
1 parent 1336744 commit 00a6366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bytes_ostream.hh
Expand Up @@ -38,7 +38,7 @@ class bytes_ostream {
public:
using size_type = bytes::size_type;
using value_type = bytes::value_type;
static constexpr size_type max_chunk_size() { return 16 * 1024; }
static constexpr size_type max_chunk_size() { return 128 * 1024; }
private:
static_assert(sizeof(value_type) == 1, "value_type is assumed to be one byte long");
struct chunk {
Expand Down

0 comments on commit 00a6366

Please sign in to comment.