Skip to content

Evict oversized Zstd compression and decompression contexts instead of returning them to RecyclingPool. - #59

Draft
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_1018771307
Draft

copybara-service[bot] wants to merge 1 commit into
masterfrom
test_1018771307

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Evict oversized Zstd compression and decompression contexts instead of returning them to RecyclingPool.

Manage ZSTD_CCtx and ZSTD_DCtx handles in ZstdWriterBase and ZstdReaderBase via RecyclingPool::RawGet() and RawPut(), returning only bounded-size contexts to the pool while freeing oversized compression and streaming decompression workspaces on completion, Reset(), or destruction instead of keeping them pinned in the LIFO pool across subsequent small streams.

…f returning them to `RecyclingPool`.

Manage `ZSTD_CCtx` and `ZSTD_DCtx` handles in `ZstdWriterBase` and `ZstdReaderBase` via `RecyclingPool::RawGet()` and `RawPut()`, returning only bounded-size contexts to the pool while freeing oversized compression and streaming decompression workspaces on completion, `Reset()`, or destruction instead of keeping them pinned in the LIFO pool across subsequent small streams.

PiperOrigin-RevId: 1018771307
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.

0 participants