Skip to content

Conversation

klauspost
Copy link
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

@Copilot 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.

Copy link

@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

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

3 participants