26#ifndef MYSQL_BINLOG_EVENT_COMPRESSION_BUFFER_GROW_CALCULATOR_H
27#define MYSQL_BINLOG_EVENT_COMPRESSION_BUFFER_GROW_CALCULATOR_H
Description of a heuristic to determine how much memory to allocate.
Definition: grow_calculator.h:68
std::size_t Size_t
Definition: grow_constraint.h:68
Grow_calculator()
Definition: grow_calculator.cpp:32
Result_t compute_new_size(Size_t old_size, Size_t requested_size) const
Compute the new size.
Definition: grow_calculator.cpp:39
static constexpr Size_t default_max_size
By default, limit memory to 1 GiB.
Definition: grow_calculator.h:74
static constexpr Size_t default_grow_increment
By default, allocate at least 1 KiB more in each call.
Definition: grow_calculator.h:79
static constexpr double default_grow_factor
By default, double the size in each allocation.
Definition: grow_calculator.h:77
static constexpr Size_t default_block_size
By default, allocate multiples of 1 KiB.
Definition: grow_calculator.h:81
Description of a heuristic to determine how much memory to allocate.
Definition: grow_constraint.h:66
std::size_t Size_t
Definition: grow_constraint.h:68
std::pair< bool, Size_t > Result_t
Return type for compute_new_size.
Definition: grow_constraint.h:70
Definition: buffer_sequence_view.h:51