bazelbuild / bazelbuild/remote-apis

V3 idea: Let Digest.hash use 'bytes' instead of 'string'

Open
#135 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
445
Forks
141
PR merge metrics
No merged PRs in 30d

Description

Right now the Digest message uses a string to store the checksum of the object. This is wasteful, because for the hashing algorithms that we use, the output is always a sequence of bytes. Using a bytes field cuts down the storage space by a half (for that field; not necessarily for the full object).

Contributor guide

Open the contributing guide

Research direction

Start by locating the Digest message definition and reviewing how its hash field is represented and consumed. Check the API compatibility and migration implications of changing the field from string to bytes; done means the representation change is specified and its affected consumers and tests are identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.