Skip to content

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