Skip to content

Changes to use word-based bitwise processing for slot updates#3539

Open
omanges wants to merge 3 commits intovalkey-io:unstablefrom
omanges:optimise_slot_migration
Open

Changes to use word-based bitwise processing for slot updates#3539
omanges wants to merge 3 commits intovalkey-io:unstablefrom
omanges:optimise_slot_migration

Conversation

@omanges
Copy link
Copy Markdown
Contributor

@omanges omanges commented Apr 20, 2026

Replaces the current byte-by-byte slot update mechanism with word-based bitwise processing. This change improves the efficiency of cluster slot management by leveraging larger bitwise operations to reduce computational overhead during slot migrations and state synchronizations.

@omanges omanges force-pushed the optimise_slot_migration branch 2 times, most recently from fa52212 to 2ca1d60 Compare April 21, 2026 06:08
Signed-off-by: Omkar Mestry <om.m.mestry@gmail.com>
@omanges omanges force-pushed the optimise_slot_migration branch from 2ca1d60 to 4639d4c Compare April 21, 2026 06:09
@madolson
Copy link
Copy Markdown
Member

@omanges Tests seem to be failing, so there is probably a functional bug. Can you take a look and try to fix it?

@omanges
Copy link
Copy Markdown
Contributor Author

omanges commented Apr 27, 2026

@omanges Tests seem to be failing, so there is probably a functional bug. Can you take a look and try to fix it?

Yeah will take a look and fix the test issues

@omanges omanges force-pushed the optimise_slot_migration branch 3 times, most recently from b3cde13 to 9c4d878 Compare April 27, 2026 06:21
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.39%. Comparing base (ff80b2d) to head (10e1d80).

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #3539      +/-   ##
============================================
- Coverage     76.66%   76.39%   -0.28%     
============================================
  Files           159      159              
  Lines         80114    80131      +17     
============================================
- Hits          61423    61217     -206     
- Misses        18691    18914     +223     
Files with missing lines Coverage Δ
src/cluster_legacy.c 88.50% <100.00%> (+0.20%) ⬆️

... and 19 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@omanges omanges force-pushed the optimise_slot_migration branch from 9c4d878 to 66eac8c Compare April 27, 2026 11:29
@omanges
Copy link
Copy Markdown
Contributor Author

omanges commented Apr 27, 2026

@madolson I have fixed the failing test, can you please have a look ?

@omanges omanges force-pushed the optimise_slot_migration branch from 66eac8c to eba5972 Compare April 27, 2026 12:35
@omanges omanges force-pushed the optimise_slot_migration branch from eba5972 to 36f79e1 Compare April 27, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants