Skip to content

Use bytes::Bytes instead of Arc<[u8]> - #6566

Closed
kim wants to merge 3 commits into
kim/tiered-storage-integrationfrom
kim/bytes-bytes
Closed

kim wants to merge 3 commits into
kim/tiered-storage-integrationfrom
kim/bytes-bytes

Conversation

@kim

@kim kim commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Bytes is often used in (tokio) networking code, and conversion from Bytes to Arc<[u8]>
involves copying (due to differing layout requirements).

So, just use Bytes.

We can revise to eliminate unnecessary copies that existed before.

API and ABI breaking changes

N/A

Rollback safety impact

N/A

Expected complexity level and risk

1

Testing

Both types are basically interchangeable, so no additional tests.

@kim
kim added this pull request to stack #6570 November 12, 2026 16:05
kim added 3 commits November 13, 2026 17:45
Tracks backing storage ownership in the page manager and blob set. After
transactions and under memory budget pressure, orphaned objects are
reclaimed.
Propagates TableCachePolicy::RequiredOnDisk by counting pin
contributions on the backing ownership object introduced earlier.
@kim
kim removed this pull request from stack #6570 November 13, 2026 17:03
@kim
kim changed the base branch from kim/local-tier-pinning-and-reclamation to kim/local-tier-pinning November 13, 2026 17:03
@kim
kim requested a review from joshua-spacetime November 13, 2026 17:03
@kim
kim force-pushed the kim/local-tier-pinning branch 4 times, most recently from 9cb58b4 to bf09241 Compare November 16, 2026 14:06
@kim

kim commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

Merged as 8ef39a0

@kim kim closed this Nov 17, 2026
@kim kim reopened this Nov 17, 2026
@kim
kim changed the base branch from kim/local-tier-pinning to kim/tiered-storage-integration November 17, 2026 10:49
@kim kim closed this Nov 17, 2026
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.

1 participant