Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.

Dispose JsonDocuments so that its internal buffers can be returned to the pool - #327

Merged
drasticactions merged 1 commit into
drasticactions:developfrom
alnkesq:return-jsonelement-buffers
Nov 2, 2025
Merged

drasticactions merged 1 commit into
drasticactions:developfrom
alnkesq:return-jsonelement-buffers

Conversation

@alnkesq

@alnkesq alnkesq commented Nov 1, 2025

Copy link
Copy Markdown
Contributor

byte[] went from being the 2nd most allocated type to the 9th (by size).

SharedArrayPool<byte>.Rent now performs negligible allocations (used to be by far the top allocator for byte[]).

@drasticactions
drasticactions merged commit 8c5461c into drasticactions:develop Nov 2, 2025
4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants