Skip to content

Minor changes to index ID APIs - #96

Merged
CascadingRadium merged 4 commits into
masterfrom
idCmp
Jul 2, 2026
Merged

Minor changes to index ID APIs#96
CascadingRadium merged 4 commits into
masterfrom
idCmp

Conversation

@CascadingRadium

@CascadingRadium CascadingRadium commented Jul 1, 2026

Copy link
Copy Markdown
Member
  • Remove redundant error from Value API.
  • Add a SetValue method for IndexInternalID to replace the existing value
    with a new one.

@CascadingRadium CascadingRadium changed the title MB-72489: Use decoded value for IndexInternalID.Compare MB-72489: Use decoded value for comparing IndexInternalID Jul 1, 2026
@CascadingRadium CascadingRadium changed the title MB-72489: Use decoded value for comparing IndexInternalID MB-72489: Minor changes to index ID APIs Jul 1, 2026
@CascadingRadium
CascadingRadium requested a review from Copilot July 1, 2026 18:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the IndexInternalID helpers in index to improve comparison performance by comparing decoded uint64 values and introduces a Reset API for reusing an existing ID buffer.

Changes:

  • Update IndexInternalID.Compare() to compare uint64 values rather than using bytes.Compare.
  • Change IndexInternalID.Value() to return a uint64 directly (no error return).
  • Add IndexInternalID.Reset() to overwrite an existing ID with a new encoded value.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread index.go
Comment thread index.go Outdated
@CascadingRadium CascadingRadium changed the title MB-72489: Minor changes to index ID APIs Minor changes to index ID APIs Jul 2, 2026
@CascadingRadium
CascadingRadium merged commit 488b3e1 into master Jul 2, 2026
9 checks passed
@CascadingRadium
CascadingRadium deleted the idCmp branch July 2, 2026 14:42
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.

4 participants