kaistshadow / blockchain-sim

Scalable blockchain simulator/emulator running on shadow simulator
MIT License
9 stars 1 forks source link

memory dedup api impl. #317

Closed hjkim17 closed 3 years ago

hjkim17 commented 3 years ago

memory API dedup implementation for shared pointer. To use API, developer should add below to the target object:

  1. bool operator==: comparing two object data is identical
  2. std::size_t hash(): hash hint of the object data
hjkim17 commented 3 years ago

periodic garbage collection for ptr with ref=1(no shared ptr on virtual nodes) required.