|
|
@@ -30,8 +30,6 @@ public class FeatureService {
|
|
|
|
|
|
public Feature getFeature(Collection<String> cidList, Collection<String> adVerIdList, List<Long> skuIdList, ScoreParam param) {
|
|
|
AdRequestContext context = param.getRequestContext();
|
|
|
- log.info("getFeature, cidListSize:{}, adVerIdListSize:{}, skuIdListSize:{}", cidList.size(), adVerIdList.size(), skuIdList.size());
|
|
|
- long start = System.currentTimeMillis();
|
|
|
List<FeatureKeyProto> protos = new ArrayList<>();
|
|
|
for (String cidStr : cidList) {
|
|
|
|
|
|
@@ -64,8 +62,6 @@ public class FeatureService {
|
|
|
protos.add(genWithCidAndVid("alg_cid_feature_vid_cf", cidStr, param.getVideoId().toString()));
|
|
|
}
|
|
|
}
|
|
|
- long stage1 = System.currentTimeMillis();
|
|
|
- log.info("getFeature, protosSize:{}, 耗时1:{}", protos.size(), stage1 - start);
|
|
|
// skuid
|
|
|
for (Long skuId : skuIdList) {
|
|
|
if (StringUtils.isNotEmpty(param.getMid())) {
|
|
|
@@ -95,11 +91,7 @@ public class FeatureService {
|
|
|
protos.add(genWithMid("mid_return_video_cate", param.getMid()));
|
|
|
protos.add(genWithMid("mid_share_video_cate", param.getMid()));
|
|
|
}
|
|
|
- long stage2 = System.currentTimeMillis();
|
|
|
- log.info("getFeature, protosSize:{}, 耗时2:{}", protos.size(), stage2 - stage1);
|
|
|
- Feature feature = this.invokeFeatureService(protos);
|
|
|
- log.info("getFeature, 耗时3:{}", System.currentTimeMillis() - stage2);
|
|
|
- return feature;
|
|
|
+ return this.invokeFeatureService(protos);
|
|
|
}
|
|
|
|
|
|
public Feature getPredictFeature(PredictContext context) {
|