InfraBlockchain / yosemite-public-blockchain

YOSEMITE Public Blockchain - General Purpose Public Blockchain for Business
https://yosemitex.com
Other
5 stars 1 forks source link

Use std::unordered_map and unordered_set instead of map and set #71

Closed EugeneChung closed 3 years ago

EugeneChung commented 6 years ago

https://www.geeksforgeeks.org/map-vs-unordered_map-c/ http://supercomputingblog.com/windows/ordered-map-vs-unordered-map-a-performance-study/

There's no reason to use std::map except for chainbase.

EugeneChung commented 5 years ago

map<type_name, type_name> typedefs; map<type_name, struct_def> structs; map<name,type_name> actions; map<name,type_name> tables; map<uint64_t, string> error_messages; map<type_name, variant_def> variants;

map<type_name, pair<unpack_function, pack_function>> built_in_types;

libraries/chain/include/eosio/chain/abi_serializer.hpp