Skip to content

Commit 0a281b6

Browse files
committed
Use HashSet/HashMap in storage stat
1 parent b3b2bd1 commit 0a281b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crypto/vm/boc.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ class NewCellStorageStat {
101101

102102
private:
103103
const CellUsageTree* usage_tree_;
104-
std::set<vm::Cell::Hash> seen_;
104+
td::HashSet<vm::Cell::Hash> seen_;
105105
Stat stat_;
106-
std::set<vm::Cell::Hash> proof_seen_;
106+
td::HashSet<vm::Cell::Hash> proof_seen_;
107107
Stat proof_stat_;
108108
const NewCellStorageStat* parent_{nullptr};
109109

@@ -117,7 +117,7 @@ struct CellStorageStat {
117117
struct CellInfo {
118118
td::uint32 max_merkle_depth = 0;
119119
};
120-
std::map<vm::Cell::Hash, CellInfo> seen;
120+
td::HashMap<vm::Cell::Hash, CellInfo> seen;
121121
CellStorageStat() : cells(0), bits(0), public_cells(0) {
122122
}
123123
explicit CellStorageStat(unsigned long long limit_cells)
@@ -173,7 +173,7 @@ class ProofStorageStat {
173173
enum CellStatus {
174174
c_none = 0, c_prunned = 1, c_loaded = 2
175175
};
176-
std::map<vm::Cell::Hash, CellStatus> cells_;
176+
td::HashMap<vm::Cell::Hash, CellStatus> cells_;
177177
td::uint64 proof_size_ = 0;
178178
};
179179

0 commit comments

Comments
 (0)