casey / casey/x-serialization-format

Consider declaring max message size up front to get smaller offsets

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

By declaring the message to be less than 2^8, 2^16, or 2^32 bytes, all offsets and lengths could be stored as u8, u16, or u32. This could be a substantial savings.

Could do this via a crate feature.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the crate's offset and length representation and its feature configuration. Determine how a declared maximum message size could select u8, u16, or u32 storage, then verify that serialization remains correct for each supported size tier.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
data
Issue type
Feature
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.