75 using Value = std::unique_ptr<dict_index_t, Index_deleter>;
Parsed index cache for redo parsing.
Definition: log0parsed_index_lru_cache.h:36
std::unique_ptr< dict_index_t, Index_deleter > Value
Definition: log0parsed_index_lru_cache.h:75
Parsed_index_lru_cache(const Parsed_index_lru_cache &)=delete
ut::prefix_cache< byte, Value > m_cache
Definition: log0parsed_index_lru_cache.h:78
static constexpr size_t k_capacity
A single dict_index_t + dict_table_t takes several kilobytes.
Definition: log0parsed_index_lru_cache.h:41
bool insert_mru(sequence_view key, dict_index_t *index)
Definition: log0parsed_index_lru_cache.h:58
std::basic_string< byte > sequence
Definition: log0parsed_index_lru_cache.h:43
Parsed_index_lru_cache()
Definition: log0parsed_index_lru_cache.h:46
std::basic_string_view< byte > sequence_view
Definition: log0parsed_index_lru_cache.h:44
Parsed_index_lru_cache & operator=(const Parsed_index_lru_cache &)=delete
dict_index_t * lookup(sequence_view &buffer)
Definition: log0parsed_index_lru_cache.h:50
Bounded cache for prefix lookups with MRU/LRU recency tracking.
Definition: ut0prefix_cache.h:51
void dict_mem_index_free(dict_index_t *index)
Frees an index memory object.
Definition: dict0mem.cc:778
Data dictionary memory object creation.
void dict_mem_table_free(dict_table_t *table)
Free a table memory object.
Definition: mem.cc:92
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
bool index(const std::string &value, const String &search_for, uint32_t *idx)
Definition: contains.h:76
mutable_buffer buffer(void *p, size_t n) noexcept
Definition: buffer.h:418
required string key
Definition: replication_asynchronous_connection_failover.proto:60
Definition: log0parsed_index_lru_cache.h:63
void operator()(dict_index_t *idx) const
Definition: log0parsed_index_lru_cache.h:64
Data structure for an index.
Definition: dict0mem.h:1069
dict_table_t * table
back pointer to table
Definition: dict0mem.h:1083
Data structure for a database table.
Definition: dict0mem.h:1927
static double cached
Definition: xcom_statistics.cc:101