MCPcopy Create free account
hub / github.com/catboost/catboost / Resolve

Method Resolve

library/cpp/dns/cache.cpp:147–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145 }
146
147 const TResolvedHost* Resolve(const TResolveTask& rt) override {
148 //1. search in local thread cache
149 {
150 TCache::const_iterator it = C_.find(rt.Info);
151
152 if (it != C_.end()) {
153 return it->second;
154 }
155 }
156
157 const TResolvedHost* res = S_->Resolve(rt);
158
159 C_[TResolveInfo(res->Host, rt.Info.Port)] = res;
160
161 return res;
162 }
163
164 private:
165 typedef THashMap<TResolveInfo, const TResolvedHost*, THashResolveInfo, TCompareResolveInfo> TCache;

Callers 2

CachedResolveFunction · 0.45
CachedThrResolveFunction · 0.45

Calls 3

TResolveInfoClass · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected