28#ifndef MYSQL_BUFFER_GROW_CALCULATOR_H_
29#define MYSQL_BUFFER_GROW_CALCULATOR_H_
Description of a heuristic to determine how much memory to allocate.
Definition: grow_calculator.h:67
static constexpr Size_t default_block_size
By default, allocate multiples of 1 KiB.
Definition: grow_calculator.h:80
Grow_calculator()
Definition: grow_calculator.cpp:32
static constexpr Size_t default_grow_increment
By default, allocate at least 1 KiB more in each call.
Definition: grow_calculator.h:78
std::size_t Size_t
Definition: grow_constraint.h:69
static constexpr double default_grow_factor
By default, double the size in each allocation.
Definition: grow_calculator.h:76
static constexpr Size_t default_max_size
By default, limit memory to 1 GiB.
Definition: grow_calculator.h:73
Result_t compute_new_size(Size_t old_size, Size_t requested_size) const
Compute the new size.
Definition: grow_calculator.cpp:39
Description of a heuristic to determine how much memory to allocate.
Definition: grow_constraint.h:67
std::size_t Size_t
Definition: grow_constraint.h:69
std::pair< bool, Size_t > Result_t
Return type for compute_new_size.
Definition: grow_constraint.h:71
Definition: buffer_sequence_view.h:51