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

Method ParallelForEach

catboost/libs/helpers/array_subset.h:893–905  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

891 */
892 template <class F>
893 void ParallelForEach(
894 F&& f,
895 NPar::ILocalExecutor* localExecutor,
896 TMaybe<TSize> approximateBlockSize = Nothing()
897 ) {
898 SubsetIndexing->ParallelForEach(
899 [src = this->Src, f = std::move(f)](TSize index, TSize srcIndex) {
900 f(index, (*src)[srcIndex]);
901 },
902 localExecutor,
903 approximateBlockSize
904 );
905 };
906
907 template <class F>
908 void ParallelForEach(

Callers 15

ForEachMethod · 0.45
QuantizeFunction · 0.45
GetPredictionDiffFunction · 0.45
MakeIncrementalIndexingFunction · 0.45
GetSubsetFunction · 0.45
GetInvertedIndexingFunction · 0.45
TestOneCaseFunction · 0.45
Y_UNIT_TESTFunction · 0.45
TestOneCaseFunction · 0.45
TestMutableFunction · 0.45
CheckMethod · 0.45

Calls 3

NothingFunction · 0.85
moveFunction · 0.50
fFunction · 0.50

Tested by 3

TestOneCaseFunction · 0.36
TestOneCaseFunction · 0.36
TestMutableFunction · 0.36