Skip to content

Optimize object-to-shard HRW#3794

Merged
roman-khimov merged 2 commits intomasterfrom
optimize-shard-hrw
Jan 30, 2026
Merged

Optimize object-to-shard HRW#3794
roman-khimov merged 2 commits intomasterfrom
optimize-shard-hrw

Conversation

@roman-khimov
Copy link
Member

This breaks sorting for already stored objects, but this shouldn't be a big problem, objects are going to be accessible anyway and optimizing access is a separate issue (it can be suboptimal because of other reasons, evacuations/shard addition/deletion/ro/etc).

@roman-khimov roman-khimov added this to the v0.51.0 milestone Jan 30, 2026
@roman-khimov roman-khimov added the performance More of something per second label Jan 30, 2026
1. base58 adds noticeable performance penalty and allocates.
2. There is no value added by hashing them, they're already random UUIDs.
3. As long as they're different hrw is ok.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
1. base58 allocates and spends some CPU cycles for something we don't need.
2. OID is a hash already, unique for each object, hashing it again adds no value.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
@codecov
Copy link

codecov bot commented Jan 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 25.68%. Comparing base (03bbf38) to head (7823814).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3794   +/-   ##
=======================================
  Coverage   25.67%   25.68%           
=======================================
  Files         660      660           
  Lines       42177    42177           
=======================================
+ Hits        10830    10834    +4     
+ Misses      30363    30361    -2     
+ Partials      984      982    -2     

☔ 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.

@roman-khimov roman-khimov merged commit eca577e into master Jan 30, 2026
22 checks passed
@roman-khimov roman-khimov deleted the optimize-shard-hrw branch January 30, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance More of something per second

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants