Skip to content

Add a counter ResultProcessor#1891

Merged
ashtul merged 7 commits intomasterfrom
RPCounter
Mar 24, 2021
Merged

Add a counter ResultProcessor#1891
ashtul merged 7 commits intomasterfrom
RPCounter

Conversation

@ashtul
Copy link
Copy Markdown
Contributor

@ashtul ashtul commented Mar 6, 2021

Before this change, when a search was with a limit of 0, Scorer, Sorter and usually Loader ResultProcessors would be created which consume cpu time.
This PR replaces them with a Counter RP which adds to the count and frees the SearchResult content.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 6, 2021

Codecov Report

Merging #1891 (6b60101) into master (9d8b586) will increase coverage by 0.02%.
The diff coverage is 100.00%.

❗ Current head 6b60101 differs from pull request most recent head afcb8cf. Consider uploading reports for the commit afcb8cf to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1891      +/-   ##
==========================================
+ Coverage   80.30%   80.32%   +0.02%     
==========================================
  Files         148      148              
  Lines       21504    21528      +24     
==========================================
+ Hits        17269    17293      +24     
  Misses       4235     4235              
Impacted Files Coverage Δ
src/aggregate/aggregate_plan.h 100.00% <ø> (ø)
src/profile.c 92.22% <ø> (ø)
src/result_processor.h 100.00% <ø> (ø)
src/aggregate/aggregate_request.c 97.35% <100.00%> (+0.02%) ⬆️
src/result_processor.c 90.39% <100.00%> (-0.38%) ⬇️
src/rlookup.c 79.27% <0.00%> (+0.32%) ⬆️
src/rules.c 89.18% <0.00%> (+0.90%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9d8b586...afcb8cf. Read the comment docs.

Copy link
Copy Markdown
Collaborator

@oshadmi oshadmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼 Thanks also for the clarifications!

@ashtul ashtul merged commit 86cadff into master Mar 24, 2021
@ashtul ashtul deleted the RPCounter branch March 24, 2021 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants