Skip to content

[MOD-10622] Optimize rs_wall_clock_diff_ns by removing redundant if branch#6660

Merged
lerman25 merged 3 commits intomasterfrom
omerl-optimize-rs-clock-diff
Aug 17, 2025
Merged

[MOD-10622] Optimize rs_wall_clock_diff_ns by removing redundant if branch#6660
lerman25 merged 3 commits intomasterfrom
omerl-optimize-rs-clock-diff

Conversation

@lerman25
Copy link
Copy Markdown
Collaborator

This pull request makes a minor change to the rs_wall_clock_diff_ns function in src/rs_wall_clock.h by removing the logic that adjusted for negative nanosecond differences.

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.52%. Comparing base (71560da) to head (df9a4fd).
⚠️ Report is 1 commits behind head on master.

⚠️ Current head df9a4fd differs from pull request most recent head d35f404

Please upload reports for the commit d35f404 to get more accurate results.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6660      +/-   ##
==========================================
- Coverage   87.55%   87.52%   -0.03%     
==========================================
  Files         282      282              
  Lines       44792    44789       -3     
  Branches     7712     7712              
==========================================
- Hits        39216    39201      -15     
- Misses       5456     5468      +12     
  Partials      120      120              
Flag Coverage Δ
flow 84.49% <100.00%> (-0.15%) ⬇️
unit 49.31% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lerman25 lerman25 added this pull request to the merge queue Aug 17, 2025
Merged via the queue into master with commit dfc2deb Aug 17, 2025
15 checks passed
@lerman25 lerman25 deleted the omerl-optimize-rs-clock-diff branch August 17, 2025 11:35
redisearch-backport-pull-request bot pushed a commit that referenced this pull request Aug 17, 2025
…branch (#6660)

* Optimize diff_ns by removing redundant if

* change type

* Fix nanosecond constant type and improve time difference calculation in rs_wall_clock_diff_ns

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

Successfully created backport PR for 2.8:

redisearch-backport-pull-request bot pushed a commit that referenced this pull request Aug 17, 2025
…branch (#6660)

* Optimize diff_ns by removing redundant if

* change type

* Fix nanosecond constant type and improve time difference calculation in rs_wall_clock_diff_ns

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

Successfully created backport PR for 2.10:

redisearch-backport-pull-request bot pushed a commit that referenced this pull request Aug 17, 2025
…branch (#6660)

* Optimize diff_ns by removing redundant if

* change type

* Fix nanosecond constant type and improve time difference calculation in rs_wall_clock_diff_ns

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

Successfully created backport PR for 8.2:

github-merge-queue bot pushed a commit that referenced this pull request Aug 17, 2025
…t if branch (#6663)

[MOD-10622]  Optimize rs_wall_clock_diff_ns by removing redundant if branch (#6660)

* Optimize diff_ns by removing redundant if

* change type

* Fix nanosecond constant type and improve time difference calculation in rs_wall_clock_diff_ns

(cherry picked from commit dfc2deb)

Co-authored-by: lerman25 <58445352+lerman25@users.noreply.github.com>
github-merge-queue bot pushed a commit that referenced this pull request Aug 17, 2025
…nt if branch (#6664)

[MOD-10622]  Optimize rs_wall_clock_diff_ns by removing redundant if branch (#6660)

* Optimize diff_ns by removing redundant if

* change type

* Fix nanosecond constant type and improve time difference calculation in rs_wall_clock_diff_ns

(cherry picked from commit dfc2deb)

Co-authored-by: lerman25 <58445352+lerman25@users.noreply.github.com>
github-merge-queue bot pushed a commit that referenced this pull request Aug 17, 2025
…t if branch (#6665)

[MOD-10622]  Optimize rs_wall_clock_diff_ns by removing redundant if branch (#6660)

* Optimize diff_ns by removing redundant if

* change type

* Fix nanosecond constant type and improve time difference calculation in rs_wall_clock_diff_ns

(cherry picked from commit dfc2deb)

Co-authored-by: lerman25 <58445352+lerman25@users.noreply.github.com>
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