Fix performance regression introduced by r5339950 (up to 10% on datasets with 2K binary features and 1M rows)
@@ -610,7 +610,7 @@ namespace NCB {
}
template <EFeatureType FeatureType>
- TMaybe<TPackedBinaryIndex> GetFeatureToPackedBinaryIndex(TFeatureIdx<FeatureType> featureIdx) const {
+ inline TMaybe<TPackedBinaryIndex> GetFeatureToPackedBinaryIndex(TFeatureIdx<FeatureType> featureIdx) const {
const ui32 flatFeatureIdx = GetFeaturesLayout()->GetExternalFeatureIdx(*featureIdx, FeatureType);
return PackedBinaryFeaturesData.FlatFeatureIndexToPackedBinaryIndex[flatFeatureIdx];
}
@@ -654,7 +654,7 @@ namespace NCB {
}
template <EFeatureType FeatureType>
- TMaybe<TExclusiveBundleIndex> GetFeatureToExclusiveBundleIndex(
+ inline TMaybe<TExclusiveBundleIndex> GetFeatureToExclusiveBundleIndex(
TFeatureIdx<FeatureType> featureIdx
) const {
const ui32 flatFeatureIdx = GetFeaturesLayout()->GetExternalFeatureIdx(*featureIdx, FeatureType);
