Skip to content

Improve text indexing performance - [MOD-8249]#5348

Merged
GuyAv46 merged 1 commit intomasterfrom
guyav-fix_text_index_performance
Dec 15, 2024
Merged

Improve text indexing performance - [MOD-8249]#5348
GuyAv46 merged 1 commit intomasterfrom
guyav-fix_text_index_performance

Conversation

@GuyAv46
Copy link
Collaborator

@GuyAv46 GuyAv46 commented Dec 12, 2024

Describe the changes in the pull request

Removing redundant calls to strlen that may slow text field indexing.

This PR doesn't have any new tests, as it doesn't introduce new logic. The fact that all the current tests pass is all the validation we need.

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

@codecov
Copy link

codecov bot commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.49%. Comparing base (98b342c) to head (498a7d7).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5348   +/-   ##
=======================================
  Coverage   86.49%   86.49%           
=======================================
  Files         193      193           
  Lines       34773    34774    +1     
=======================================
+ Hits        30076    30077    +1     
  Misses       4697     4697           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@alonre24 alonre24 left a comment

Choose a reason for hiding this comment

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

Nice catch, @fcostaoliveira how hard will it be to add a new dataset to our benchmarks that shows the performance difference in this use case (load long text docs)?

@GuyAv46 GuyAv46 added this pull request to the merge queue Dec 15, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 15, 2024
@GuyAv46 GuyAv46 added this pull request to the merge queue Dec 15, 2024
Merged via the queue into master with commit ab3628d Dec 15, 2024
@GuyAv46 GuyAv46 deleted the guyav-fix_text_index_performance branch December 15, 2024 18:10
redisearch-backport-pull-request bot pushed a commit that referenced this pull request Dec 15, 2024
remove strlen calls

(cherry picked from commit ab3628d)
@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 2.10:

@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 8.0:

github-merge-queue bot pushed a commit that referenced this pull request Dec 15, 2024
Improve text indexing performance - [MOD-8249] (#5348)

remove strlen calls

(cherry picked from commit ab3628d)

Co-authored-by: GuyAv46 <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Dec 15, 2024
Improve text indexing performance - [MOD-8249] (#5348)

remove strlen calls

(cherry picked from commit ab3628d)

Co-authored-by: GuyAv46 <[email protected]>
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