#include <assert.h>
#include "map_helpers.h"
#include "my_base.h"
#include "my_sys.h"
#include "sql/filesort_utils.h"
#include "sql/mem_root_array.h"
Go to the source code of this file.
◆ Merge_chunk_array
◆ Sort_buffer
◆ reuse_freed_buff()
template<typename Heap_type >
void reuse_freed_buff |
( |
Merge_chunk * |
old_top, |
|
|
Heap_type * |
heap |
|
) |
| |
Put all room used by freed buffer to use in adjacent buffer.
Note, that we can't simply distribute memory evenly between all buffers, because new areas must not overlap with old ones.
◆ MERGEBUFF
constexpr size_t MERGEBUFF = 7 |
|
constexpr |
◆ MERGEBUFF2
constexpr size_t MERGEBUFF2 = 15 |
|
constexpr |
◆ VARLEN_PREFIX
constexpr size_t VARLEN_PREFIX = 4 |
|
constexpr |