8000 Documentation and minor refactor to clarify MT memory management by embg · Pull Request #3000 · facebook/zstd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Documentation and minor refactor to clarify MT memory management #3000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 18, 2022

Conversation

embg
Copy link
Contributor
@embg embg commented Jan 16, 2022

Clarifies some misunderstandings I had while working on #2232. In particular:

  • ZSTDMT_initCStream_internal can reuse a ZSTDMT_CCtx from a previous compression, and memory usage depends on the previous compression's parameters.
  • The buffer pool size upper bound only applies to mtctx->bufPool. For mtctx->seqPool, the true bound is lower.

@embg embg changed the title Documentation and minor refactor to clarify MT memory management. Documentation and minor refactor to clarify MT memory management Jan 16, 2022
@Cyan4973
Copy link
Contributor

The additional comments are welcome, and correct.

I just have one question about an included modification of parameters order.

@embg embg force-pushed the mt_memory_readability branch from ee20c01 to 9b6dfed Compare January 18, 2022 16:43
@Cyan4973
Copy link
Contributor

Look good to me !

@embg embg merged commit fe8fefb into facebook:dev Jan 18, 2022
@embg embg deleted the mt_memory_readability branch January 18, 2022 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0