Skip to content
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

Reduce unnecessary Vec allocations and indirections #77

Merged
merged 1 commit into from Sep 3, 2022

Commits on Aug 28, 2022

  1. Reduce unnecessary allocations and indirections

    * Changed literal_probs array from a Vec<Vec<u16>> to a Vec2D backed by a contiguous allocation
    * BitTrees in LenDecoder and DecoderState are now stored inline. The actual BitTree data still
      lives in a Vec but one level of indirection is reduced.
    * Don't bother with filling stack-allocated DecoderState arrays on reset, and just recreate the
      arrays dropping the existing ones.
    chyyran committed Aug 28, 2022
    Configuration menu
    Copy the full SHA
    48b66fa View commit details
    Browse the repository at this point in the history