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

Function MadviseRandomAccess

util/system/madvise.cpp:59–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void MadviseRandomAccess(const void* begin, size_t size) {
60#if !defined(_win_)
61 Madvise(MADV_RANDOM, begin, size);
62#endif
63}
64
65void MadviseRandomAccess(TArrayRef<const char> data) {
66 MadviseRandomAccess(data.data(), data.size());

Callers

nothing calls this directly

Calls 3

MadviseFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected