Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

improve EOS VM OC cache lookup performance via hashed index #9740

Merged
merged 1 commit into from
Dec 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <eosio/chain/webassembly/eos-vm-oc/eos-vm-oc.hpp>
#include <eosio/chain/webassembly/eos-vm-oc/ipc_helpers.hpp>
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include <boost/multi_index/hashed_index.hpp>
#include <boost/multi_index/sequenced_index.hpp>
#include <boost/multi_index/composite_key.hpp>
#include <boost/multi_index/key_extractors.hpp>
Expand Down Expand Up @@ -52,7 +52,7 @@ class code_cache_base {
code_descriptor,
indexed_by<
sequenced<>,
ordered_unique<tag<by_hash>,
hashed_unique<tag<by_hash>,
composite_key< code_descriptor,
member<code_descriptor, digest_type, &code_descriptor::code_hash>,
member<code_descriptor, uint8_t, &code_descriptor::vm_version>
Expand Down