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

Function LoadWithCache

catboost/libs/data/target.cpp:880–895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

878
879template <class TSharedDataPtr>
880static void LoadWithCache(
881 const TSerializationTargetSingleTypeDataCache<TSharedDataPtr>& cachePart,
882 IBinSaver* binSaver,
883 THashMap<TString, TSharedDataPtr>* data
884) {
885 ui32 dataCount = 0;
886 LoadMulti(binSaver, &dataCount);
887 for (ui32 dataIdx : xrange(dataCount)) {
888 Y_UNUSED(dataIdx);
889
890 TString name;
891 ui64 id;
892 LoadMulti(binSaver, &name, &id);
893 data->emplace(name, cachePart.at(id));
894 }
895}
896
897void TProcessedTargetData::Load(IBinSaver* binSaver) {
898 TSerializationTargetDataCache cache;

Callers 1

LoadMethod · 0.85

Calls 5

LoadMultiFunction · 0.85
xrangeFunction · 0.85
Y_UNUSEDFunction · 0.85
emplaceMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected