Skip to content

Add msgpack serializers to stringset#2107

Merged
harshavardhana merged 1 commit intominio:masterfrom
klauspost:stringset-msgp
May 15, 2025
Merged

Add msgpack serializers to stringset#2107
harshavardhana merged 1 commit intominio:masterfrom
klauspost:stringset-msgp

Conversation

@klauspost
Copy link
Copy Markdown
Contributor

Add binary (de)serializers using msgp to stringsets.

Should we move this to to minio/pkg instead?

Add binary (de)serializers using msgp to stringsets.

Should we move this to to `minio/pkg` instead?
Copy link
Copy Markdown

Copilot AI left a comment

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 adds msgpack-based serialization and deserialization support for StringSet.

  • Implements a new method, ToByteSlices, in pkg/set/stringset.go to convert the set to a sorted slice of byte slices.
  • Introduces pkg/set/msgp.go with msgp encode, decode, marshal, and unmarshal functions for StringSet.
  • Updates go.mod to include required dependencies for msgp and supplemental libraries.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
pkg/set/stringset.go Adds ToByteSlices method and preallocates maps for set creation.
pkg/set/msgp.go Implements msgpack serialization functions for StringSet.
go.mod Adds dependencies for msgp and fwd.

Comment thread pkg/set/stringset.go
Copy link
Copy Markdown

@anjalshireesh anjalshireesh left a comment

Choose a reason for hiding this comment

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

LGTM, one minor question

Comment thread pkg/set/msgp.go
@harshavardhana harshavardhana merged commit 4f25bfc into minio:master May 15, 2025
5 checks passed
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.

5 participants