|
@@ -61,7 +61,7 @@ public class TopRecommendPipeline {
|
|
|
final User userInfo, Boolean logPrint) {
|
|
|
// Step 1: Attention extraction
|
|
|
Stopwatch stopwatch = Stopwatch.createStarted();
|
|
|
- stopwatch.start();
|
|
|
+ stopwatch.reset().start();
|
|
|
List<RankItem> rankItems = feedByRec(requestData, requestIndex, userInfo, logPrint);
|
|
|
if (rankItems == null || rankItems.isEmpty()) {
|
|
|
return new ArrayList<>();
|
|
@@ -118,7 +118,7 @@ public class TopRecommendPipeline {
|
|
|
Stopwatch stopwatch = Stopwatch.createStarted();
|
|
|
|
|
|
// Step 2: create top queue
|
|
|
- stopwatch.start();
|
|
|
+ stopwatch.reset().start();
|
|
|
StrategyQueue topQueue = MergeUtils.createTopQueue(MERGE_CONF, "top-queue");
|
|
|
if (logPrint) {
|
|
|
log.info("traceId = {}, cost = {}, topQueue = {}", requestData.getRequestId(),
|